From f2772ff365e3b466c5b2a14690992882c49de94d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Kn=C3=B6ppler?= <6317548+theCalcaholic@users.noreply.github.com> Date: Sat, 21 Jan 2023 20:09:24 +0100 Subject: [PATCH] 1.51.0.sh: Make sure, Changes to opcache.ini are in effect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com> --- updates/1.51.0.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/updates/1.51.0.sh b/updates/1.51.0.sh index 165919af8..79736c6a9 100644 --- a/updates/1.51.0.sh +++ b/updates/1.51.0.sh @@ -10,7 +10,6 @@ dpkg -l | grep -e '^ii' | grep -e 'php-json' > /dev/null && { echo "Updating opcache configuration..." install_template "php/opcache.ini.sh" "/etc/php/${PHPVER}/mods-available/opcache.ini" -run_app "clear-php-opcache" dpkg -l | grep -e '^ii' | grep -e 'php8.2' > /dev/null && { msg="PHP 8.2 packages have been detected on your ncp instance, which could cause issues. If you didn't install them on purpose, please remove them with the following command: sudo apt remove php8.2-*" @@ -18,4 +17,6 @@ dpkg -l | grep -e '^ii' | grep -e 'php8.2' > /dev/null && { notify_admin "NextcloudPi" "$msg" } +bash -c "sleep 5; source /usr/local/etc/library.sh; clear_opcache; service php${PHPVER}-fpm restart;" &> /dev/null & + exit 0