summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-02-02 10:12:39 +0000
committerMarkos Chandras <mchandras@suse.de>2017-02-02 15:43:47 +0000
commit5cffe0127e1e4b07f4a513975db44c1020becbc9 (patch)
tree1fbcb63e99b366c9187df8c1176d26c881e6efd8
parentd406fb03948296cdd02c7b93ffb9433ceb39d872 (diff)
prototypes: bifrost: Cleanup old VM console logs
The VM logs may not be rotated by logrotate so they are accumulated over time. Make sure they are gone when we start a new job. Change-Id: Iecf7e53015740db98c17a42612da7f44f3c4a676 Signed-off-by: Markos Chandras <mchandras@suse.de>
-rwxr-xr-xprototypes/bifrost/scripts/destroy-env.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/prototypes/bifrost/scripts/destroy-env.sh b/prototypes/bifrost/scripts/destroy-env.sh
index 9920046e1..f6c66a876 100755
--- a/prototypes/bifrost/scripts/destroy-env.sh
+++ b/prototypes/bifrost/scripts/destroy-env.sh
@@ -33,7 +33,7 @@ fi
echo "removing leases"
[[ -e /var/lib/misc/dnsmasq/dnsmasq.leases ]] && > /var/lib/misc/dnsmasq/dnsmasq.leases
echo "removing logs"
-rm -rf /var/log/libvirt/baremetal_logs/*.log
+rm -rf /var/log/libvirt/baremetal_logs/*
# clean up dib images only if requested explicitly
CLEAN_DIB_IMAGES=${CLEAN_DIB_IMAGES:-false}