From f7ee3ac12ec10b9d53aca8104df5fd6e8522d675 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 13 Sep 2012 11:43:28 +0200 Subject: [PATCH] housekeeping --- liveboot_build.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/liveboot_build.sh b/liveboot_build.sh index 60983dc..8a4a24f 100755 --- a/liveboot_build.sh +++ b/liveboot_build.sh @@ -4,6 +4,7 @@ # GPL2 licenced set -e +#set -x export # @@ -14,7 +15,7 @@ export PB_SUITE=production-proposed-updates RSYNC_SRC=/srv/mirror/liveboot RSYNC_FILTER='' -# WORK IN PROGRESS +# TODO: WORK IN PROGRESS # ri server RSYNC_DST1="liveboot@riserver/liveboot/" # pbb (mgmt5) @@ -22,7 +23,6 @@ RSYNC_DST2="liveboot@10.254.1.1/liveboot/" # staging (mgmt9) RSYNC_DST3="liveboot@10.252.1.1/liveboot/" -figlet "still work in progress, but... getting there" BUILD_SCRIPT=$(mktemp) cat > $BUILD_SCRIPT <<-EOF @@ -34,7 +34,7 @@ git checkout $GIT_BRANCH ./build.sh $BUILD_NUMBER $GIT_BRANCH EOF sudo pbuilder --execute --bindmounts /srv/build/ -- $BUILD_SCRIPT - +rm $BUILD_SCRIPT # FIXME: too much sudo here... cd /srv/build/liveboot/builds @@ -58,6 +58,7 @@ figlet "mirror to staging OK" echo "mirror to DCs is MISSING" +# TODO: garbage collection # # cleanup /srv/mirror, keep MAX number of images # @@ -73,6 +74,8 @@ echo "mirror to DCs is MISSING" # fi #done -#figlet "cleanup OK" echo -n "cleanup DISABLED: " du -sh /srv/mirror/liveboot + +figlet "OK" + -- 2.39.5