delete project fix

This commit is contained in:
Adolfo Delorenzo 2024-01-05 18:51:35 -06:00
parent 6ff369c0e3
commit cb65a13dfb

View File

@ -3,9 +3,12 @@
random=$1 random=$1
lxc project switch $random lxc project switch $random
container=`lxc ls | tail -2 | head -1 | awk '{ print $2 }'` container1=`lxc ls | tail -3 | head -1 | awk '{ print $2 }'`
container2=`lxc ls | tail -5 | head -1 | awk '{ print $2 }'`
lxc stop $container lxc stop $container1
lxc delete $container lxc stop $container2
lxc delete $container1
lxc delete $container2
lxc project delete $random lxc project delete $random
lxc network delete vn-$random lxc network delete vn-$random