X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.dinstall;h=cb326fc6b79116e317de59cfb62973ac847c36f4;hb=8bd3b5778660b5d78fbfad3db125156420c4c0f1;hp=ee77eb7180706fb5c7fc2e8f1276e5629117749f;hpb=c6198d1f5ec4e4534bd80ccab277645ec513b52b;p=dak.git diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index ee77eb71..cb326fc6 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -70,7 +70,7 @@ cd $configdir $scriptsdir/update-bugdoctxt $scriptsdir/update-mirrorlists $scriptsdir/update-mailingliststxt -$scriptsdir/update-pseudopackages +$scriptsdir/update-pseudopackages.sh ################################################################################ @@ -338,6 +338,21 @@ echo "Compress old psql backups" ts +echo "Removing old dinstall logfiles" +(cd $logdir + find -maxdepth 1 -mindepth 1 -type f -name 'dinstall_*' -mtime +60 | + while read dumpname; do + echo "Removing $dumpname" + rm -f "$dumpname" + done + + find -maxdepth 1 -mindepth 1 -type f -name 'weekly_*' -mtime +60 | + while read dumpname; do + echo "Removing $dumpname" + rm -f "$dumpname" + done +) + echo "Finally, all is done, sending mail and compressing logfile" exec > /dev/null 2>&1