Nginx config will now use SiteName as its conf name, and fixed nextcloud init so it will use the php-pool user

This commit is contained in:
2020-07-22 16:01:40 +02:00
parent a3be7f3e18
commit 200292da97
6 changed files with 25 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
#Configuring nginx
wget -q -t7 "$repo"/raw/branch/"$branch"/CMS/wordpress/Nginx-unconfigured -O /tmp/nginx-siteconf
sed -i -e 's/PHPver/'$phpver'/g' -e 's/DOMAINname/'$domain'/' -e 's/SITEname/'$sitename'/' /tmp/nginx-siteconf
sed -i -e "0,/^#ConfHere/s/\(^#Conf.*\)/#ConfHere1 /" -e '/#ConfHere1/ r /tmp/nginx-siteconf' -e '/#ConfHere/c\' /etc/nginx/sites-available/"$domain"
sed -i -e "0,/^#ConfHere/s/\(^#Conf.*\)/#ConfHere1 /" -e '/#ConfHere1/ r /tmp/nginx-siteconf' -e '/#ConfHere/c\' /etc/nginx/sites-available/"$sitename"
#Reloading Services
systemctl reload nginx php$phpver-fpm