Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@hanssonit.se>2022-02-04 13:32:47 +0300
committerGitHub <noreply@github.com>2022-02-04 13:32:47 +0300
commit8740349679b044d937343fea160e839376961501 (patch)
treef59d425d88fac7d713452e9f51396ea8064691a5
parent2e5d32d54391fc921fc901fde9b856dc456fc9a0 (diff)
Raise buffer for OPCache for old installs as well
https://github.com/nextcloud/server/issues/30532
-rw-r--r--nextcloud_update.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/nextcloud_update.sh b/nextcloud_update.sh
index 862f9be8..02851ba2 100644
--- a/nextcloud_update.sh
+++ b/nextcloud_update.sh
@@ -1013,6 +1013,14 @@ then
nextcloud_occ config:system:set default_phone_region --value="$KEYBOARD_LAYOUT"
fi
fi
+ if [ "${CURRENTVERSION%%.*}" -ge "23" ]
+ then
+ # Raise OPCache
+ if grep -q "opcache.interned_strings_buffer=8" "$PHP_INI"
+ then
+ sed -i "s|opcache.interned_strings_buffer.*|opcache.interned_strings_buffer=16|g" "$PHP_INI"
+ fi
+ fi
else
msg_box "Something went wrong with backing up your old Nextcloud instance
Please check in $BACKUP if the folders exist."