fixed maintenance mode detection

This commit is contained in:
2026-05-28 21:10:20 -05:00
parent 79e8215668
commit d4e8cdc551
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
action="$1"
FOLDER='/opt/idssys/ta-proxmenu'
VERS='2026.5.1-1'
VERS='2026.5.28-1'
noupdate=' restart cpu mm '
+1 -1
View File
@@ -258,7 +258,7 @@ SET_VM_SHUTDOWNTIMEOUT(){
}
MAINTENANCE_MODE(){
if ha-manager status | grep "maintenance mode" &> /dev/null; then
if ha-manager status | grep $(hostname) | grep "maintenance mode" &> /dev/null; 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]} "