Update proxmenu-scripts.sh

This commit is contained in:
2026-05-28 21:12:01 -05:00
parent d4e8cdc551
commit 06ce73c5b1
+2 -2
View File
@@ -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]}"