update
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user