From 13af56a077e56ff96f634aad3b1b28ca40cd37d7 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 22 Jul 2025 11:47:41 +0200 Subject: [PATCH] better verbose output --- misc/tools.func | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 05548ee85..7f576c814 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -438,15 +438,14 @@ function setup_php() { # install apache2 with PHP support if requested if [[ "$PHP_APACHE" == "YES" ]]; then if ! dpkg -l | grep -q "libapache2-mod-php${PHP_VERSION}"; then - msg_info "Installing Apache with PHP${PHP_VERSION} support" - $STD apt-get install -y apache2 libapache2-mod-php${PHP_VERSION} - else - msg_info "Apache with PHP${PHP_VERSION} already installed – skipping install" + $STD msg_info "Installing Apache with PHP${PHP_VERSION} support" + $STD apt-get install -y apache2 libapache2-mod-php"${PHP_VERSION}" + $STD msg_ok "Setup Apache with PHP${PHP_VERSION}" fi fi # setup / update PHP modules - $STD apt-get install -y $MODULE_LIST + $STD apt-get install -y "$MODULE_LIST" msg_ok "Setup PHP $PHP_VERSION" # optional stop old PHP-FPM service @@ -485,8 +484,8 @@ function setup_php() { # enable and restart PHP-FPM if requested if [[ "$PHP_FPM" == "YES" ]]; then if systemctl list-unit-files | grep -q "php${PHP_VERSION}-fpm.service"; then - $STD systemctl enable php${PHP_VERSION}-fpm - $STD systemctl restart php${PHP_VERSION}-fpm + $STD systemctl enable php"${PHP_VERSION}"-fpm + $STD systemctl restart php"${PHP_VERSION}"-fpm else msg_warn "FPM requested but service php${PHP_VERSION}-fpm not found" fi