From bee6fa22e4fe15edd6fd76d6ae73a2f48e8ca759 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 5 Mar 2020 14:44:03 +0100 Subject: [PATCH] Update 'CMS/nextcloud/nginx-conf.sh' --- CMS/nextcloud/nginx-conf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMS/nextcloud/nginx-conf.sh b/CMS/nextcloud/nginx-conf.sh index 024e932..75ba9bc 100644 --- a/CMS/nextcloud/nginx-conf.sh +++ b/CMS/nextcloud/nginx-conf.sh @@ -6,7 +6,6 @@ wget -q -t7 "$repo"/raw/branch/"$branch"/CMS/nextcloud/Nginx-unconfigured -O /tm 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 www-data:www-data -R /var/www/"$domain"/html #Configuring PHP sed -i '/upload_max_filesize/c\upload_max_filesize = 1G' /etc/php/"$phpver"/fpm/php.ini @@ -43,4 +42,5 @@ cat < /var/www/$domain/html/config/autoconfig.php ); EOF +chown www-data:www-data -R /var/www/"$domain"/html systemctl reload nginx php$phpver-fpm \ No newline at end of file