call virsh with sudo in cleanup script

This commit is contained in:
Derek Higgins 2013-05-17 17:58:39 +01:00
parent 7a0e7dc685
commit c3ff479f4d

View File

@ -2,7 +2,7 @@
set -x
for ID in $(virsh list --uuid --all); do
virsh destroy $ID
virsh undefine --remove-all-storage $ID
for ID in $(sudo virsh list --uuid --all); do
sudo virsh destroy $ID
sudo virsh undefine --remove-all-storage $ID
done