Update 'config/nextcloud/nextcloud-config.sh'

This commit is contained in:
bprieshof
2019-04-24 10:09:47 +02:00
parent 35833b75b5
commit 715773e683

View File

@@ -1,5 +1,5 @@
apt install -y libmagickcore-6.q16-3-extra
wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config/nextcloud/php-fpm.ini -O /etc/php/7.2/fpm/php.ini
wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config/nextcloud/php-fpm.ini -O /etc/php/"$phpver"/fpm/php.ini
cd /tmp
db_suffix=`expr $(ls -l /var/www | grep -c ^d) - 1`
db_name="nextcloud_$db_suffix"
@@ -90,7 +90,7 @@ server {
location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+)\.php(?:\$|\/) {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_pass unix:/var/run/php/php$phpver-fpm.sock;
fastcgi_split_path_info ^(.+?\.php)(\/.*|)\$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
@@ -140,7 +140,7 @@ server {
}
EOF
service php7.2-fpm restart
service php$phpver-fpm restart
service nginx restart
cat <<EOF > ~/nextcloud-init.sh