From: Fabian Holler Date: Thu, 22 Aug 2013 14:37:37 +0000 (+0200) Subject: liveboot: delete kernel debug archive when garbage collection ran X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=029ef4361b5cefcdc898ccdd7780c167e059dabb;p=profitbricks%2Fjenkins-build-scripts.git 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 --- 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