Closes #89 fixes webroot in SSL setup

This commit is contained in:
Ric Harvey
2016-10-28 10:40:36 +01:00
parent acaaa0d6e7
commit dbc35c4aa1
3 changed files with 7 additions and 2 deletions

View File

@@ -10,6 +10,10 @@ else
# change nginx for webroot and domain name
sed -i "s/##DOMAIN##/${DOMAIN}/g" /etc/nginx/sites-enabled/default-ssl.conf
sed -i "s#root /var/www/html;#root ${WEBROOT};#g" /etc/nginx/sites-available/default-ssl.conf
if [ ! -z "$WEBROOT" ]; then
webroot=$WEBROOT
sed -i "s#root /var/www/html;#root ${webroot};#g" /etc/nginx/sites-available/default-ssl.conf
fi
supervisorctl restart nginx