summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2016-09-12 09:42:08 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-12 09:42:08 +0000
commit34c9b73f09d61a9177f4f6aeeec0dfc51cb37232 (patch)
treea266d9c3117dfb5454c53e6a21e68afe04bb5403
parentafe8581e20575110e299ebfb4c63f89ac7625ecc (diff)
parent49344e5c43afb3a579666a75d95850f8028aafcd (diff)
Merge "Fix script when CLEAN_DIB_IMAGES var is not set"
-rwxr-xr-xprototypes/bifrost/scripts/destroy-env.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/prototypes/bifrost/scripts/destroy-env.sh b/prototypes/bifrost/scripts/destroy-env.sh
index 4dffee62a..f092a658a 100755
--- a/prototypes/bifrost/scripts/destroy-env.sh
+++ b/prototypes/bifrost/scripts/destroy-env.sh
@@ -27,6 +27,8 @@ echo "removing logs"
rm -rf /var/log/libvirt/baremetal_logs/*.log
# clean up dib images only if requested explicitly
+CLEAN_DIB_IMAGES=${CLEAN_DIB_IMAGES:-false}
+
if [ $CLEAN_DIB_IMAGES = "true" ]; then
rm -rf /httpboot/*
rm -rf /tftpboot/*