diff --git a/defaults.inc b/defaults.inc index d24c5ce..2fdfb6f 100755 --- a/defaults.inc +++ b/defaults.inc @@ -3,7 +3,7 @@ action="$1" FOLDER='/opt/idssys/ta-proxmenu' -VERS='2026.3.9.2' +VERS='2026.3.11-1' RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index dde811f..b41761d 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -185,21 +185,27 @@ DOWNLOAD_VIRTIO() { } DETECT_CPU(){ - echo - proxclmc - echo - + if [ ! -f /etc/apt/sources.list.d/gyptazy.list ]; then + curl https://git.gyptazy.com/api/packages/gyptazy/debian/repository.key -o /etc/apt/keyrings/gyptazy.asc + echo "deb [signed-by=/etc/apt/keyrings/gyptazy.asc] https://packages.gyptazy.com/api/packages/gyptazy/debian trixie main" | sudo tee -a /etc/apt/sources.list.d/gyptazy.list + apt update + fi + apt -y install proxclmc + + echo + proxclmc + echo echo -en "${idsCL[LightCyan]}Would you like to set '${idsCL[LightGreen]}cpu: $(proxclmc --list-only)${idsCL[LightCyan]}' on all VMs (y/N)?${idsCL[Default]} " read -n 1 choice case "$choice" in - [Yy]) - 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 - ;; - *) echo;; - esac + [Yy]) + 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 + ;; + *) echo;; + esac }