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

@@ -3,7 +3,7 @@
action="$1" action="$1"
FOLDER='/opt/idssys/ta-proxmenu' FOLDER='/opt/idssys/ta-proxmenu'
VERS='2026.3.20' VERS='2026.3.21'
RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)

View File

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