Update proxmenu-scripts.sh

This commit is contained in:
2026-03-07 18:45:25 -06:00
parent 0b31ecc6a6
commit fc56a3ee03

View File

@@ -219,16 +219,16 @@ RESTART_PVE_SERVICES(){
}
MAINTENANCE_MODE(){
if ha-manager status | grep -q "maintenance-mode"; then
if ha-manager status | grep "maintenance mode"; 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]} "
echo -en "${idsCL[LightCyan]}qPut the local host into maintenance mode (Y/n)?${idsCL[Default]} "
fi
read -n 1 choice
case "$choice" in
[Nn]) echo;;
*) echo
if ha-manager status | grep -q "maintenance-mode"; then
if ha-manager status | grep "maintenance mode"; then
ha-manager crm-command node-maintenance disable $(hostname) &
echo -e "\n${idsCL[Green]}This host will be taken out of maintenance mode${idsCL[Default]}\n"
else
@@ -300,7 +300,7 @@ MAIN_MENU() {
echo -e "${idsCL[DarkGray]} [S] ScreenConnect is already installed${idsCL[Default]}"
fi
echo
if ha-manager status | grep -q "maintenance-mode"; then
if ha-manager status | grep "maintenance mode"; then
echo -e " [${idsCL[LightYellow]}M${idsCL[Default]}] ${idsCL[White]}Take Host out of Maintenance Mode${idsCL[Default]}"
else
echo -e " [${idsCL[LightYellow]}M${idsCL[Default]}] ${idsCL[White]}Put Host into Maintenance Mode${idsCL[Default]}"