From e31e8baeace232156f15f8b6aad2681e91dba66b Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 29 Apr 2025 13:55:49 +0200 Subject: [PATCH] Update phpmyadmin.sh --- tools/addon/phpmyadmin.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/addon/phpmyadmin.sh b/tools/addon/phpmyadmin.sh index af4a322..f033ae4 100644 --- a/tools/addon/phpmyadmin.sh +++ b/tools/addon/phpmyadmin.sh @@ -167,15 +167,15 @@ EOF PHP_VERSION=$(php -r 'echo PHP_MAJOR_VERSION . PHP_MINOR_VERSION;') PHP_FPM_SERVICE="php-fpm${PHP_VERSION}" - if rc-service "$PHP_FPM_SERVICE" start && rc-update add "$PHP_FPM_SERVICE" default; then + if $STD rc-service "$PHP_FPM_SERVICE" start && $STD rc-update add "$PHP_FPM_SERVICE" default; then msg_ok "Started PHP-FPM service: $PHP_FPM_SERVICE" else msg_error "Failed to start PHP-FPM service: $PHP_FPM_SERVICE" exit 1 fi - rc-service lighttpd start - rc-update add lighttpd default + $STD rc-service lighttpd start + $STD rc-update add lighttpd default msg_ok "Configured and started Lighttpd successfully" fi @@ -186,8 +186,8 @@ function uninstall_phpmyadmin() { if [[ "$OS" == "Debian" ]]; then systemctl stop apache2 else - rc-service lighttpd stop - rc-service php-fpm stop + $STD rc-service lighttpd stop + $STD rc-service php-fpm stop fi msg_info "Removing phpMyAdmin directory" @@ -196,10 +196,10 @@ function uninstall_phpmyadmin() { if [[ "$OS" == "Alpine" ]]; then msg_info "Removing Lighttpd config" rm -f /etc/lighttpd/lighttpd.conf - rc-service php-fpm restart - rc-service lighttpd restart + $STD rc-service php-fpm restart + $STD rc-service lighttpd restart else - systemctl restart apache2 + $STD systemctl restart apache2 fi msg_ok "Uninstalled phpMyAdmin" }