diff --git a/defaults.inc b/defaults.inc index 9926fd9..e04a392 100755 --- a/defaults.inc +++ b/defaults.inc @@ -3,7 +3,7 @@ action="$1" FOLDER='/opt/idssys/ta-proxmenu' -VERS='2026.4.13-1' +VERS='2026.4.16-1' noupdate=' restart cpu mm ' diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index e94fe93..5ef4f95 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -218,9 +218,13 @@ DETECT_CPU(){ } RESTART_PVE_SERVICES(){ - echo -en "${idsCL[LightCyan]}Would you like to restart all Proxmox services on the local host (Y/n)?${idsCL[Default]} " - read -n 1 choice - case "$choice" in + if [ "${1}" == "" ]; then + echo -en "${idsCL[LightCyan]}Would you like to restart all Proxmox services on the local host (Y/n)?${idsCL[Default]} " + read -n 1 choice + else + choice=${1} + fi + case "${choice}" in [Nn]) echo;; *) echo echo -en "\n${idsCL[Yellow]}Restarting services ... "