1.51.0.sh: Make sure, Changes to opcache.ini are in effect

Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
Tobias Knöppler 2023-01-21 20:09:24 +01:00
parent 362c8288f5
commit 33af0ed554
No known key found for this signature in database
GPG Key ID: 3510056072886A8F

View File

@ -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