From 865b1def4ffc86cc1bae58db6ec18d5341798a93 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 7 Mar 2026 18:33:50 -0600 Subject: [PATCH] Update proxmenu-scripts.sh --- proxmenu-scripts.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index d7737d1..8289f9a 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -218,8 +218,21 @@ RESTART_PVE_SERVICES(){ esac } +MAINTENANCE_MODE(){ + 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]} " + fi + read -n 1 choice + case "$choice" in + [Nn]) echo;; + *) echo - + [ ${action-x} ] && exit 0 || ENTER2CONTINUE + ;; + esac +} MAIN_MENU() { while :