X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.dinstall;h=a2941b888e6226166803b523460f67b1c500c438;hb=8070bc45cbc18b1f930c1feaebc2344076da0099;hp=de44fe5f05ac7e98e4a1e30a9c1bc6be19a68a05;hpb=47384ef2b7b6c6239b41623ad8612ac7fd32d089;p=dak.git diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index de44fe5f..a2941b88 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -230,7 +230,7 @@ rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir ts echo "Trigger daily wanna-build run" -ssh -o BatchMode=yes -o SetupTimeOut=90 -o ConnectTimeout=90 buildd@buildd /org/wanna-build/trigger.daily || echo "W-B trigger.daily failed" | mail -s "W-B Daily trigger failed" ftpmaster@ftp-master.debian.org +ssh -o BatchMode=yes -o SetupTimeOut=90 -o ConnectTimeout=90 wbadm@buildd /org/wanna-build/trigger.daily || echo "W-B trigger.daily failed" | mail -s "W-B Daily trigger failed" ftpmaster@ftp-master.debian.org rm -f $NOTICE rm -f $LOCKCU @@ -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