blob: f2e352f1b081e99bc4662805769b91455e737f8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
set -e
echo "Please run it by jenkins account!"
cat << EOF | sudo tee /etc/sudoers.d/${USER}
${USER} ALL = (root) NOPASSWD:ALL
EOF
sudo apt-get update > /dev/null
sudo apt install -y qemu-kvm libvirt-bin 2>1 /dev/null
echo "Plsease reboot/logout to make effective for libvirt group adding"
|