From 06ce73c5b1a70daf9ba3a5a25975f4fa2fada031 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 28 May 2026 21:12:01 -0500 Subject: [PATCH] Update proxmenu-scripts.sh --- proxmenu-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index 83f841b..4544fa1 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -267,7 +267,7 @@ MAINTENANCE_MODE(){ case "$choice" in [Nn]) echo;; *) echo - if ha-manager status | grep "maintenance mode" &> /dev/null; then + if ha-manager status | grep $(hostname) | grep "maintenance mode" &> /dev/null; then ha-manager crm-command node-maintenance disable $(hostname) & echo -e "\n${idsCL[Green]}This host will be taken out of maintenance mode${idsCL[Default]}\n" else @@ -345,7 +345,7 @@ MAIN_MENU() { echo -e "${idsCL[DarkGray]} [S] ScreenConnect is already installed${idsCL[Default]}" fi echo - if echo ${HAS} | grep "maintenance mode" &> /dev/null; then + if echo ${HAS} | grep $(hostname) | 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]}"