fixed maintenance mode detection
This commit is contained in:
+1
-1
@@ -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]} "
|
||||
|
||||
Reference in New Issue
Block a user