only keep 60 days of cron logfiles on disc
Signed-off-by: Joerg Jaspert <joerg@debian.org>
+2008-10-07 Joerg Jaspert <joerg@debian.org>
+
+ * config/debian/cron.dinstall: Only keep the last 60 days of
+ dinstall logfiles on disc.
+
2008-09-23 Joerg Jaspert <joerg@debian.org>
* config/debian/dak.conf: Add the validtime fields, set to 7
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