Update tools.func

This commit is contained in:
CanbiZ 2025-07-22 10:57:21 +02:00
parent 96351e0441
commit 9c92bced11

View File

@ -465,10 +465,12 @@ function setup_php() {
fi fi
if [[ "$PHP_APACHE" == "YES" ]] && [[ -n "$CURRENT_PHP" ]]; then if [[ "$PHP_APACHE" == "YES" ]] && [[ -n "$CURRENT_PHP" ]]; then
if [[ "$CURRENT_PHP" != "$PHP_VERSION" ]]; then
if [[ -f /etc/apache2/mods-enabled/php${CURRENT_PHP}.load ]]; then if [[ -f /etc/apache2/mods-enabled/php${CURRENT_PHP}.load ]]; then
$STD a2dismod php"${CURRENT_PHP}" || true $STD a2dismod php"${CURRENT_PHP}" || true
fi fi
fi fi
fi
if [[ "$PHP_FPM" == "YES" ]] && [[ -n "$CURRENT_PHP" ]]; then if [[ "$PHP_FPM" == "YES" ]] && [[ -n "$CURRENT_PHP" ]]; then
$STD systemctl stop php"${CURRENT_PHP}"-fpm || true $STD systemctl stop php"${CURRENT_PHP}"-fpm || true