diff options
-rw-r--r-- | etc/nextcloudpi-config.d/nc-backup.sh | 4 | ||||
-rwxr-xr-x | etc/nextcloudpi-config.d/nc-nextcloud.sh | 2 | ||||
-rw-r--r-- | etc/nextcloudpi-config.d/nc-restore.sh | 2 | ||||
-rw-r--r-- | nextcloud_lamp.sh | 7 | ||||
-rw-r--r-- | nextcloudpi.sh | 2 |
5 files changed, 11 insertions, 6 deletions
diff --git a/etc/nextcloudpi-config.d/nc-backup.sh b/etc/nextcloudpi-config.d/nc-backup.sh index a5934c10..a8ef3291 100644 --- a/etc/nextcloudpi-config.d/nc-backup.sh +++ b/etc/nextcloudpi-config.d/nc-backup.sh @@ -15,9 +15,7 @@ # -# TODO maintenance mode - -DESTDIR_=/home/pi +DESTDIR_=/media/USBdrive BASEDIR_=/var/www DBPASSWD_=ownyourbits diff --git a/etc/nextcloudpi-config.d/nc-nextcloud.sh b/etc/nextcloudpi-config.d/nc-nextcloud.sh index 9524f981..c63cb2e2 100755 --- a/etc/nextcloudpi-config.d/nc-nextcloud.sh +++ b/etc/nextcloudpi-config.d/nc-nextcloud.sh @@ -15,7 +15,7 @@ # More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/ # -VER_=11.0.3 +VER_=12.0.0 ADMINUSER_=admin DBADMIN_=ncadmin DBPASSWD_=ownyourbits diff --git a/etc/nextcloudpi-config.d/nc-restore.sh b/etc/nextcloudpi-config.d/nc-restore.sh index 9c9a7b6d..d4d9808c 100644 --- a/etc/nextcloudpi-config.d/nc-restore.sh +++ b/etc/nextcloudpi-config.d/nc-restore.sh @@ -17,7 +17,7 @@ # -BACKUPFILE_=/home/pi/file.tar +BACKUPFILE_=/media/USBdrive/nextcloud-bkp_xxxxxxxx.tar BASEDIR_=/var/www DBPASSWD_=ownyourbits DBADMIN_=ncadmin diff --git a/nextcloud_lamp.sh b/nextcloud_lamp.sh index 0469a943..96a8e4db 100644 --- a/nextcloud_lamp.sh +++ b/nextcloud_lamp.sh @@ -117,8 +117,15 @@ EOF cat > /etc/php/7.0/mods-available/opcache.ini <<EOF zend_extension=opcache.so +opcache.enable=1 +opcache.enable_cli=1 opcache.file_cache=$OPCACHEDIR; opcache.fast_shutdown=1 +opcache.interned_strings_buffer=8 +opcache.max_accelerated_files=10000 +opcache.memory_consumption=128 +opcache.save_comments=1 +opcache.revalidate_freq=1 EOF a2enmod http2 diff --git a/nextcloudpi.sh b/nextcloudpi.sh index ee402952..4147ac84 100644 --- a/nextcloudpi.sh +++ b/nextcloudpi.sh @@ -71,7 +71,7 @@ IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(.\d{1,3}){3}' | head -1 ) cd /var/www/nextcloud sudo -u www-data php occ config:system:set trusted_domains 1 --value=$IP EOF - systemctl enable nextcloud-domain + systemctl enable nextcloud-domain # make sure this is called on last re-boot # NEXTCLOUDPI UPDATES ########################################## |