fixed maintenance mode detection
This commit is contained in:
1 parent
79e8215668
commit
d4e8cdc551
2 files changed
+2
-2
No files matched your search
+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