From cb65a13dfb52a733ad33e45052e6f1ee6bbdfee0 Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Fri, 5 Jan 2024 18:51:35 -0600 Subject: [PATCH] delete project fix --- del_project.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/del_project.sh b/del_project.sh index 88eecff..558d10b 100755 --- a/del_project.sh +++ b/del_project.sh @@ -3,9 +3,12 @@ random=$1 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 delete $container +lxc stop $container1 +lxc stop $container2 +lxc delete $container1 +lxc delete $container2 lxc project delete $random lxc network delete vn-$random