From d94220bfe3eb9eaa409596f6c8926f3d0b80e10c Mon Sep 17 00:00:00 2001 From: root Date: Wed, 20 Dec 2023 20:41:56 +0100 Subject: [PATCH] Wed Dec 20 08:41:56 PM CET 2023 --- del_project.sh | 17 +++-------------- options-example.sh | 0 2 files changed, 3 insertions(+), 14 deletions(-) mode change 100644 => 100755 options-example.sh 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