Update proxmenu-scripts.sh
This commit is contained in:
@@ -219,7 +219,7 @@ RESTART_PVE_SERVICES(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
MAINTENANCE_MODE(){
|
MAINTENANCE_MODE(){
|
||||||
if ha-manager status | grep "maintenance mode"; then
|
if ha-manager status | grep "maintenance mode" &> /dev/null; then
|
||||||
echo -en "${idsCL[LightCyan]}Take the local host out of maintenance mode (Y/n)?${idsCL[Default]} "
|
echo -en "${idsCL[LightCyan]}Take the local host out of maintenance mode (Y/n)?${idsCL[Default]} "
|
||||||
else
|
else
|
||||||
echo -en "${idsCL[LightCyan]}qPut 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]} "
|
||||||
@@ -228,7 +228,7 @@ MAINTENANCE_MODE(){
|
|||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Nn]) echo;;
|
[Nn]) echo;;
|
||||||
*) echo
|
*) echo
|
||||||
if ha-manager status | grep "maintenance mode"; then
|
if ha-manager status | grep "maintenance mode" &> /dev/null; then
|
||||||
ha-manager crm-command node-maintenance disable $(hostname) &
|
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"
|
echo -e "\n${idsCL[Green]}This host will be taken out of maintenance mode${idsCL[Default]}\n"
|
||||||
else
|
else
|
||||||
@@ -300,7 +300,7 @@ MAIN_MENU() {
|
|||||||
echo -e "${idsCL[DarkGray]} [S] ScreenConnect is already installed${idsCL[Default]}"
|
echo -e "${idsCL[DarkGray]} [S] ScreenConnect is already installed${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
if ha-manager status | grep "maintenance mode"; then
|
if ha-manager status | grep "maintenance mode" &> /dev/null; then
|
||||||
echo -e " [${idsCL[LightYellow]}M${idsCL[Default]}] ${idsCL[White]}Take Host out of Maintenance Mode${idsCL[Default]}"
|
echo -e " [${idsCL[LightYellow]}M${idsCL[Default]}] ${idsCL[White]}Take Host out of Maintenance Mode${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
echo -e " [${idsCL[LightYellow]}M${idsCL[Default]}] ${idsCL[White]}Put Host into Maintenance Mode${idsCL[Default]}"
|
echo -e " [${idsCL[LightYellow]}M${idsCL[Default]}] ${idsCL[White]}Put Host into Maintenance Mode${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user