diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index 15e16cb..7817419 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -207,13 +207,14 @@ DETECT_CPU(){ } RESTART_PVE_SERVICES(){ - echo -en "${idsCL[LightCyan]}Would you like to set '${idsCL[LightGreen]}cpu: $(proxclmc --list-only)${idsCL[LightCyan]}' on all VMs (y/N)?${idsCL[Default]} " + 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 - [Yy]) echo - systemctl restart pve-cluster pvedaemon pvestatd pveproxy - echo;; - *) echo;; + case "$choice" in + [Nn]) echo;; + *) echo + systemctl restart pve-cluster pvedaemon pvestatd pveproxy + echo;; + esac echo -e "\n${idsCL[Green]}This hosts services have been restarted${idsCL[Default]}" [ ${action-x} ] && exit 0 || ENTER2CONTINUE