This commit is contained in:
2026-03-07 18:37:49 -06:00
parent d130c1f670
commit 0b31ecc6a6
2 changed files with 4 additions and 3 deletions

View File

@@ -219,10 +219,10 @@ RESTART_PVE_SERVICES(){
}
MAINTENANCE_MODE(){
if [ $(ha-manager status | grep -q "maintenance-mode") ]; then
if ha-manager status | grep -q "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]}Put the local host into maintenance mode (Y/n)?${idsCL[Default]} "
fi
read -n 1 choice
case "$choice" in
@@ -327,6 +327,7 @@ MAIN_MENU() {
[Mm]) MAINTENANCE_MODE;;
[Rr]) RESTART_PVE_SERVICES;;
[Qq]) EXIT1; exit 0;;
*) echo -e "Thats an invaild option,\nplease select a valid option only."; sleep 1;;
esac
done
}