1
0
mirror of https://github.com/gryf/vmstrap.git synced 2025-12-18 20:10:28 +01:00

Added cleanup.sh

This commit is contained in:
2020-03-23 08:53:00 +01:00
parent 07e537f1db
commit 7da6ce0308
4 changed files with 11 additions and 0 deletions

8
cleanup.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash -x
~/devstack/unstack.sh
for instance in `sudo virsh list --all --name`
do sudo virsh destroy $instance
sudo virsh undefine $instance
done
sudo umount `mount | grep kube | cut -d " " -f 3`
sudo rm -rf /var/lib/docker && sudo rm -rf /opt/stack/data