auto qemu.conf edit added with variable

This commit is contained in:
RP1 2024-12-09 21:07:34 +01:00
parent 4284e9431a
commit 9d5ea9dcbb

View file

@ -210,8 +210,9 @@ if [[ $user_choice = *"KVM QEMU - virtualizáció, virtuális gépek futtatása"
sudo usermod -aG kvm $USER sudo usermod -aG kvm $USER
sudo usermod -aG input $USER sudo usermod -aG input $USER
sudo usermod -aG libvirt $USER sudo usermod -aG libvirt $USER
# qemu.conf sed parancs $USER-el hogy ne kelljen kezzel csinalni sudo sed -i '530d' /etc/libvirt/qemu.conf
sudo sed -i "530 i user = \"$USER"\" /etc/libvirt/qemu.conf
sudo sed -i 's/#group = "kvm"/group = "kvm"/' /etc/libvirt/qemu.conf
echo ${bold}${yellow}KVM QEMU ${normal}installed. echo ${bold}${yellow}KVM QEMU ${normal}installed.
echo --------------------------------------------- echo ---------------------------------------------
echo echo