diff --git a/del_project.sh b/del_project.sh index dedb6f3..88eecff 100755 --- a/del_project.sh +++ b/del_project.sh @@ -3,20 +3,9 @@ random=$1 lxc project switch $random -lxc stop $random-csgo2-00 -lxc delete $random-csgo2-00 +container=`lxc ls | tail -2 | head -1 | awk '{ print $2 }'` +lxc stop $container +lxc delete $container lxc project delete $random lxc network delete vn-$random - -#node1=`nmctl node list | grep $random | grep k2c-1 | awk '{print $16}'` -#node2=`nmctl node list | grep $random | grep k2c-2 | awk '{print $16}'` -#node3=`nmctl node list | grep $random | grep k2c-3 | awk '{print $16}'` -#otto=`nmctl node list | grep $random | grep otto | awk '{print $16}'` - -#nmctl node delete $random $node1 -#nmctl node delete $random $node2 -#nmctl node delete $random $node3 -#nmctl node delete $random $otto - -#nmctl network delete $random diff --git a/options-example.sh b/options-example.sh old mode 100644 new mode 100755