update
This commit is contained in:
@@ -255,6 +255,7 @@ MAINTENANCE_MODE(){
|
||||
|
||||
MAIN_MENU() {
|
||||
CRES=$(pvesh get /cluster/resources)
|
||||
HAS=$(ha-manager status)
|
||||
while :
|
||||
do
|
||||
clear
|
||||
@@ -314,7 +315,7 @@ MAIN_MENU() {
|
||||
echo -e "${idsCL[DarkGray]} [S] ScreenConnect is already installed${idsCL[Default]}"
|
||||
fi
|
||||
echo
|
||||
if ha-manager status | grep "maintenance mode" &> /dev/null; then
|
||||
if echo ${HAS} | 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]}"
|
||||
|
||||
Reference in New Issue
Block a user