We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 440be4b commit 1df0789Copy full SHA for 1df0789
stack.sh
@@ -990,10 +990,10 @@ if is_service_enabled n-cpu; then
990
clean_iptables
991
992
# Destroy old instances
993
- instances=`virsh list --all | grep $INSTANCE_NAME_PREFIX | sed "s/.*\($INSTANCE_NAME_PREFIX[0-9a-fA-F]*\).*/\1/g"`
+ instances=`sudo virsh list --all | grep $INSTANCE_NAME_PREFIX | sed "s/.*\($INSTANCE_NAME_PREFIX[0-9a-fA-F]*\).*/\1/g"`
994
if [ ! "$instances" = "" ]; then
995
- echo $instances | xargs -n1 virsh destroy || true
996
- echo $instances | xargs -n1 virsh undefine || true
+ echo $instances | xargs -n1 sudo virsh destroy || true
+ echo $instances | xargs -n1 sudo virsh undefine || true
997
fi
998
999
# Logout and delete iscsi sessions
0 commit comments