Update 'CMS/none/nginx-conf.sh'

This commit is contained in:
bprieshof
2019-12-12 13:11:33 +01:00
parent d5461e36d6
commit ad46ee4f99

View File

@@ -3,4 +3,5 @@ sed -i -e 's/PHPver/'$phpver'/g' -e 's/DOMAINname/'$domain'/' /tmp/nginx-sitecon
sed -i -e "0,/^#ConfHere/s/\(^#Conf.*\)/#ConfHere1 /" -e '/#ConfHere1/ r /tmp/nginx-siteconf' -e '/#ConfHere/c\' /etc/nginx/sites-enabled/"$domain"
mkdir -p /var/www/"$domain"/html
chown www-data:www-data -R /var/www/"$domain"/html
echo "<html><head></head><body>$webserv has been succsefully installed by the Wizard</body></html>" > /var/www/$domain/html/index.html
systemctl reload nginx