From 029ef4361b5cefcdc898ccdd7780c167e059dabb Mon Sep 17 00:00:00 2001 From: Fabian Holler Date: Thu, 22 Aug 2013 16:37:37 +0200 Subject: [PATCH] liveboot: delete kernel debug archive when garbage collection ran delete the liveboot kernel debug archive in /srv/liveboot/debug_archives when the associated liveboot image is deleted --- liveboot_garbage_collection.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/liveboot_garbage_collection.sh b/liveboot_garbage_collection.sh index 7f1b934..ef245b2 100755 --- a/liveboot_garbage_collection.sh +++ b/liveboot_garbage_collection.sh @@ -11,6 +11,7 @@ set -e AMOUNT_TO_KEEP=15 WARNING_TRESHOLD=10 LIVEBOOT_IMAGE_PATH="/srv/mirror/liveboot" +DEBUG_ARCHIVE_PATH="/srv/liveboot/debug_archives" echo @@ -48,6 +49,7 @@ for DIRECTORY in $SECOND_PASS ; do $SCRIPT_PATH/cleanup_liveboot.py "delete" "$DIRECTORY" # FIXME: this sudo is kinda ugly. cause is liveboot_build.sh actually sudo rm -rf "$LIVEBOOT_IMAGE_PATH/$DIRECTORY" + sudo rm -f $DEBUG_ARCHIVE_PATH/$DIRECTORY* fi done echo -- 2.39.5