From 2e8e2b61d394c72cf06cc650e67ef3516212e43e Mon Sep 17 00:00:00 2001 From: cod378 Date: Fri, 14 Nov 2025 02:30:19 +0000 Subject: [PATCH] fix: use MONITOR_SERVICE constant instead of MONITOR_SERVICE_NAME in uninstall function --- scripts/menus/config_menu.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/menus/config_menu.sh b/scripts/menus/config_menu.sh index a2491c2..6f6ff1e 100644 --- a/scripts/menus/config_menu.sh +++ b/scripts/menus/config_menu.sh @@ -36,17 +36,17 @@ initialize_cache uninstall_proxmenux_monitor() { # 1. Stop service if it is running - if systemctl is-active --quiet "${MONITOR_SERVICE_NAME}"; then + if systemctl is-active --quiet "${MONITOR_SERVICE}"; then echo " - Stoping service..." - systemctl stop "${MONITOR_SERVICE_NAME}" + systemctl stop "${MONITOR_SERVICE}" else echo " - Service is not running (ok)" fi # 2. Disable service if enabled - if systemctl is-enabled --quiet "${MONITOR_SERVICE_NAME}"; then + if systemctl is-enabled --quiet "${MONITOR_SERVICE}"; then echo " - Disabling service..." - systemctl disable "${MONITOR_SERVICE_NAME}" + systemctl disable "${MONITOR_SERVICE}" else echo " - Service is not enabled (ok)" fi @@ -64,7 +64,7 @@ uninstall_proxmenux_monitor() { systemctl daemon-reload systemctl reset-failed || true - echo "==> Service ${MONITOR_SERVICE_NAME} uninstalled." + echo "==> Service ${MONITOR_SERVICE} uninstalled." }