Skip to content

Commit

Permalink
1.51.0.sh: Make sure, Changes to opcache.ini are in effect
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Knöppler <[email protected]>
  • Loading branch information
theCalcaholic committed Jan 22, 2023
1 parent 362c828 commit 33af0ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion updates/1.51.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ 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-*"
echo -e "$msg"
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

0 comments on commit 33af0ed

Please sign in to comment.