Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix script when CLEAN_DIB_IMAGES var is not set
[releng.git]
/
prototypes
/
bifrost
/
scripts
/
destroy-env.sh
diff --git
a/prototypes/bifrost/scripts/destroy-env.sh
b/prototypes/bifrost/scripts/destroy-env.sh
index
4dffee6
..
f092a65
100755
(executable)
--- 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/*