diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2017-03-29 16:46:26 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-29 16:46:26 +0000 |
commit | 8d56e29f3dd1fad74a678202a70eb9d8bbf00bfc (patch) | |
tree | 4cb3d3014e6fde74fe7a9561a5fadf8844d1e458 /prototypes/bifrost | |
parent | 8bf12376cc1ba62a4d26967d074a6de12996d644 (diff) | |
parent | 4b89b339fc24c16955af03e7cb06fc21c48942d1 (diff) |
Merge "prototypes: bifrost: Remove /opt/stack from previous deployments"
Diffstat (limited to 'prototypes/bifrost')
-rwxr-xr-x | prototypes/bifrost/scripts/destroy-env.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/prototypes/bifrost/scripts/destroy-env.sh b/prototypes/bifrost/scripts/destroy-env.sh index ce9d53538..d570f10ad 100755 --- a/prototypes/bifrost/scripts/destroy-env.sh +++ b/prototypes/bifrost/scripts/destroy-env.sh @@ -14,6 +14,9 @@ if [[ $(whoami) != "root" ]]; then exit 1 fi +# Start fresh +rm -rf /opt/stack + # Delete all libvirt VMs and hosts from vbmc (look for a port number) for vm in $(vbmc list | awk '/[0-9]/{{ print $2 }}'); do virsh destroy $vm || true |