From: Fatih Degirmenci Date: Mon, 12 Sep 2016 09:42:08 +0000 (+0000) Subject: Merge "Fix script when CLEAN_DIB_IMAGES var is not set" X-Git-Tag: colorado.1.0~49 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=34c9b73f09d61a9177f4f6aeeec0dfc51cb37232;hp=afe8581e20575110e299ebfb4c63f89ac7625ecc;p=releng.git Merge "Fix script when CLEAN_DIB_IMAGES var is not set" --- 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/*