X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.dinstall;h=cb326fc6b79116e317de59cfb62973ac847c36f4;hb=735b888fcb8ffe59582529db099456a213429f30;hp=6df0bc69a77c56575cf646fa2f18ec0a3bb06514;hpb=b502193e1d00ab3ab2b7be108fa3974ae1df0ecc;p=dak.git diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 6df0bc69..cb326fc6 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -70,6 +70,7 @@ cd $configdir $scriptsdir/update-bugdoctxt $scriptsdir/update-mirrorlists $scriptsdir/update-mailingliststxt +$scriptsdir/update-pseudopackages.sh ################################################################################ @@ -337,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