Update proxmenu-scripts.sh
This commit is contained in:
+2
-2
@@ -267,7 +267,7 @@ MAINTENANCE_MODE(){
|
|||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Nn]) echo;;
|
[Nn]) echo;;
|
||||||
*) echo
|
*) echo
|
||||||
if ha-manager status | grep "maintenance mode" &> /dev/null; then
|
if ha-manager status | grep $(hostname) | 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
|
||||||
@@ -345,7 +345,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 echo ${HAS} | grep "maintenance mode" &> /dev/null; then
|
if echo ${HAS} | grep $(hostname) | grep "maintenance mode" &> /dev/null; then
|
||||||
echo -e "${idsCL[White]} [${idsCL[LightYellow]}M${idsCL[Default]}] ${idsCL[White]}Take Host out of Maintenance Mode${idsCL[Default]}"
|
echo -e "${idsCL[White]} [${idsCL[LightYellow]}M${idsCL[Default]}] ${idsCL[White]}Take Host out of Maintenance Mode${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[White]} [${idsCL[LightYellow]}M${idsCL[Default]}] ${idsCL[White]}Put Host into Maintenance Mode${idsCL[Default]}"
|
echo -e "${idsCL[White]} [${idsCL[LightYellow]}M${idsCL[Default]}] ${idsCL[White]}Put Host into Maintenance Mode${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user