fixed maintenance mode detection
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
action="$1"
|
action="$1"
|
||||||
FOLDER='/opt/idssys/ta-proxmenu'
|
FOLDER='/opt/idssys/ta-proxmenu'
|
||||||
VERS='2026.5.1-1'
|
VERS='2026.5.28-1'
|
||||||
|
|
||||||
noupdate=' restart cpu mm '
|
noupdate=' restart cpu mm '
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -258,7 +258,7 @@ SET_VM_SHUTDOWNTIMEOUT(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
MAINTENANCE_MODE(){
|
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]} "
|
echo -en "${idsCL[LightCyan]}Take the local host out of maintenance mode (Y/n)?${idsCL[Default]} "
|
||||||
else
|
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]} "
|
||||||
|
|||||||
Reference in New Issue
Block a user