From 0b31ecc6a6706ee88bb540f6826f3307b0051663 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 7 Mar 2026 18:37:49 -0600 Subject: [PATCH] update --- defaults.inc | 2 +- proxmenu-scripts.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/defaults.inc b/defaults.inc index 9fc4d28..878f32f 100755 --- a/defaults.inc +++ b/defaults.inc @@ -3,7 +3,7 @@ action="$1" FOLDER='/opt/idssys/ta-proxmenu' -VERS='2026.3.20' +VERS='2026.3.21' RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index ca9ee70..0128385 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -219,10 +219,10 @@ RESTART_PVE_SERVICES(){ } MAINTENANCE_MODE(){ - if [ $(ha-manager status | grep -q "maintenance-mode") ]; then + if ha-manager status | grep -q "maintenance-mode"; then echo -en "${idsCL[LightCyan]}Take the local host out of maintenance mode (Y/n)?${idsCL[Default]} " else - echo -en "${idsCL[LightCyan]Put the local host into maintenance mode (Y/n)?${idsCL[Default]} " + echo -en "${idsCL[LightCyan]}Put the local host into maintenance mode (Y/n)?${idsCL[Default]} " fi read -n 1 choice case "$choice" in @@ -327,6 +327,7 @@ MAIN_MENU() { [Mm]) MAINTENANCE_MODE;; [Rr]) RESTART_PVE_SERVICES;; [Qq]) EXIT1; exit 0;; + *) echo -e "Thats an invaild option,\nplease select a valid option only."; sleep 1;; esac done }