Allow user to customise webroot
This commit is contained in:
@@ -11,6 +11,11 @@ if [ ! -z "$SSH_KEY" ]; then
|
||||
chmod 600 /root/.ssh/id_rsa
|
||||
fi
|
||||
|
||||
# Set custom webroot
|
||||
if [ ! -z "$WEBROOT" ]; then
|
||||
sed -i "s#root /var/www/html;#root ${WEBROOT};#g" /etc/nginx/sites-available/default.conf
|
||||
fi
|
||||
|
||||
# Setup git variables
|
||||
if [ ! -z "$GIT_EMAIL" ]; then
|
||||
git config --global user.email "$GIT_EMAIL"
|
||||
|
||||
Reference in New Issue
Block a user