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

This commit is contained in:
Bram Prieshof
2020-03-05 14:44:03 +01:00
parent 6ce57d2678
commit bee6fa22e4

View File

@@ -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 <<EOF > /var/www/$domain/html/config/autoconfig.php
);
EOF
chown www-data:www-data -R /var/www/"$domain"/html
systemctl reload nginx php$phpver-fpm