Allow user to change config and scripts folder

This commit is contained in:
Roberto Bermejo Martinez
2018-09-28 21:11:22 +02:00
parent 687a6a812c
commit f2cc4b6f19
7 changed files with 37 additions and 28 deletions

View File

@@ -10,10 +10,6 @@ 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