diff --git a/CMS/none/nginx-conf.sh b/CMS/none/nginx-conf.sh index d74a8fd..b98d96c 100644 --- a/CMS/none/nginx-conf.sh +++ b/CMS/none/nginx-conf.sh @@ -2,5 +2,5 @@ wget -q -t7 "$repo"/raw/branch/"$branch"/CMS/none/Nginx-unconfigured -O /tmp/ngi sed -i -e 's/PHPver/'$phpver'/g' -e 's/DOMAINname/'$domain'/' /tmp/nginx-siteconf 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 -R /var/www/"$domain"/html +chown www-data:www-data -R /var/www/"$domain"/html systemctl reload nginx \ No newline at end of file