From 4e76050a2cd0826ae2422f02cbd1e831f9592e99 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 13 Mar 2026 22:11:31 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- proxmenu-scripts.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/defaults.inc b/defaults.inc index 4da39ff..6aa3000 100755 --- a/defaults.inc +++ b/defaults.inc @@ -3,7 +3,7 @@ action="$1" FOLDER='/opt/idssys/ta-proxmenu' -VERS='2026.3.13-6' +VERS='2026.3.13-9' 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 d706368..701ec9e 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -255,6 +255,7 @@ MAINTENANCE_MODE(){ MAIN_MENU() { CRES=$(pvesh get /cluster/resources) + HAS=$(ha-manager status) while : do clear @@ -314,7 +315,7 @@ MAIN_MENU() { echo -e "${idsCL[DarkGray]} [S] ScreenConnect is already installed${idsCL[Default]}" fi echo - if ha-manager status | grep "maintenance mode" &> /dev/null; then + if echo ${HAS} | grep "maintenance mode" &> /dev/null; then echo -e "${idsCL[White]} [${idsCL[LightYellow]}M${idsCL[Default]}] ${idsCL[White]}Take Host out of Maintenance Mode${idsCL[Default]}" else echo -e "${idsCL[White]} [${idsCL[LightYellow]}M${idsCL[Default]}] ${idsCL[White]}Put Host into Maintenance Mode${idsCL[Default]}"