This commit is contained in:
2026-03-13 22:11:31 -05:00
parent 99b5764ae8
commit 4e76050a2c
2 changed files with 3 additions and 2 deletions

View File

@@ -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]}"