call virsh with sudo in cleanup script
This commit is contained in:
parent
7a0e7dc685
commit
c3ff479f4d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user