thekube/del_project.sh

23 lines
625 B
Bash
Raw Normal View History

2023-12-19 22:08:03 +00:00
#!/usr/bin/bash
random=$1
lxc project switch $random
lxc stop $random-csgo2-00
lxc delete $random-csgo2-00
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