diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index 63b0b6e..f984601 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -138,6 +138,16 @@ DETECT_CPU(){ fi proxclmc echo + + read -n 1 -p "Would you like to set this for all VMs (Y/n)?" choice + case "$choice" in + [Nn]) echo;; + * ) + sed -i "/cpu:/c cpu: $(proxclmc --list-only)" /etc/pve/nodes/*/qemu-server/*.conf + echo + echo -e "\n${idsCL[Green]}All VM's have been reconfigured\n${idsCL[LightCyan]}This will require the VM's to be powered off and then turned back on in order to take effect${idsCL[Default]}" + ;; + [ ${action-x} ] && exit 0 ENTER2CONTINUE }