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