From feb3b5ef5f536d25cdca0cd417c019f083168ac8 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Fri, 14 Nov 2025 17:44:19 +0100 Subject: [PATCH] Update config_menu.sh --- scripts/menus/config_menu.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/menus/config_menu.sh b/scripts/menus/config_menu.sh index 76d99cc..e860815 100644 --- a/scripts/menus/config_menu.sh +++ b/scripts/menus/config_menu.sh @@ -23,6 +23,7 @@ VENV_PATH="/opt/googletrans-env" MONITOR_SERVICE="proxmenux-monitor.service" MONITOR_UNIT_FILE="/etc/systemd/system/${MONITOR_SERVICE}" +MONITOR_CONFIG_DIR="/root/.config/proxmenux-monitor" if [[ -f "$UTILS_FILE" ]]; then source "$UTILS_FILE" @@ -59,12 +60,21 @@ uninstall_proxmenux_monitor() { echo " - Unit file ${MONITOR_UNIT_FILE} does not exist (ok)" fi - # 4. Reload systemd + # 4. Remove config directory (~/.config/proxmenux-monitor) + if [ -d "${MONITOR_CONFIG_DIR}" ]; then + echo " - Removing config dir ${MONITOR_CONFIG_DIR}..." + rm -rf "${MONITOR_CONFIG_DIR}" + else + echo " - Config dir ${MONITOR_CONFIG_DIR} does not exist (ok)" + fi + + # 5. Reload systemd echo " - Recargando systemd..." systemctl daemon-reload > /dev/null 2>&1 systemctl reset-failed > /dev/null 2>&1 || true echo "==> Service ${MONITOR_SERVICE} uninstalled." + }