X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=buildd%2Fcleanup.sh;h=3d643468c4cc388fcb1fb103f689d1df840caa8a;hp=9a4d5f6da5af6eeccf847e4b84109f6a93071a08;hb=36c28682d60241e5f36136983cb3ce09dbe9f668;hpb=dc7d851927755053cdaefd3b752dc989712fecd0 diff --git a/buildd/cleanup.sh b/buildd/cleanup.sh index 9a4d5f6..3d64346 100755 --- a/buildd/cleanup.sh +++ b/buildd/cleanup.sh @@ -19,8 +19,9 @@ cd $MIRROR_DIRECTORY || exit 2 DAYS=3 REMOVE_ME="" -for flavour in grml-small_lenny grml-small_sid grml-medium_lenny grml-medium_sid grml_sid grml_lenny \ - grml64-small_lenny grml64-small_sid grml64-medium_lenny grml64-medium_sid grml64_sid grml64_lenny ; do +for flavour in grml-medium_lenny grml-medium_squeeze grml-medium_sid grml-small_lenny grml-small_squeeze grml-small_sid \ + grml64-medium_lenny grml64-medium_squeeze grml64-medium_sid grml64-small_lenny grml64-small_squeeze grml64-small_sid \ + grml64_lenny grml64_squeeze grml64_sid grml_lenny grml_squeeze grml_sid ; do FILE_COUNT=$(ls -1 $flavour/$flavour*.iso | wc -l) if [ "$FILE_COUNT" -gt "$DAYS" ] ; then FILES=$(ls -1 $flavour/$flavour*.iso | tail -"$DAYS") @@ -34,10 +35,10 @@ done [ -d .archive ] || mkdir .archive for file in $REMOVE_ME ; do - # remove ISOs: test -f ${file} && rm -f $file - # ... but keep their md5sum: - test -f ${file}.md5 && mv ${file}.md5 .archive + # ... but keep their md5sum / sha1sum: + test -f ${file}.md5 && mv ${file}.md5 .archive + test -f ${file}.sha1 && mv ${file}.sha1 .archive done # inform on successful removal: