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