Update proxmenu-scripts.sh
This commit is contained in:
@@ -218,27 +218,8 @@ RESTART_PVE_SERVICES(){
|
|||||||
esac
|
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
|
|
||||||
if ha-manager status | grep -q "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
|
|
||||||
ha-manager crm-command node-maintenance enable $(hostname) &
|
|
||||||
echo -e "\n${idsCL[Green]}This host will be entered into maintenance mode${idsCL[Default]}\n"
|
|
||||||
fi
|
|
||||||
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
MAIN_MENU() {
|
MAIN_MENU() {
|
||||||
while :
|
while :
|
||||||
|
|||||||
Reference in New Issue
Block a user