Allow user to customise webroot

This commit is contained in:
Ric Harvey
2016-06-30 15:08:52 +01:00
parent 8d2f1091d1
commit 8f8cfc1ac7

View File

@@ -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"