X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.dinstall;h=8813d519fa1c42a98eff79db75c06deda3702929;hb=7f20bb168b919452f8ee0c865ab91f0084a9f46a;hp=4e3befb736b7bd5b92383f6eb79b1742620fd3c2;hpb=259e0951de653dafa87f3f6b6d1d92a92e6800c9;p=dak.git diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 4e3befb7..8813d519 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -28,7 +28,6 @@ cleanup() { rm -f "$LOCKAC" fi echo "Cleanup" - rm -f "$LOGFILE" } lockfile -l 3600 $LOCKCU trap cleanup 0 @@ -66,14 +65,14 @@ TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X) echo "Doing automated p-u-new processing" cd $queuedir/p-u-new date -u -R >> REPORT -dak process-new -a -C COMMENTS >> REPORT +dak process-new -a -C COMMENTS >> REPORT || true echo >> REPORT TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X) echo "Doing automated o-p-u-new processing" cd $queuedir/o-p-u-new date -u -R >> REPORT -dak process-new -a -C COMMENTS >> REPORT +dak process-new -a -C COMMENTS >> REPORT || true echo >> REPORT ################################################################################ @@ -258,7 +257,7 @@ TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X) echo "Finally, all is done, sending mail and compressing logfile" exec > /dev/null 2>&1 -cat "$LOGFILE" | mail -s "Log for dinstall run of $(date +%Y.%m.%d' at '%H:%M)" cron@ftp-master.debian.org +cat "$LOGFILE" | mail -s "Log for dinstall run of ${NOW}" cron@ftp-master.debian.org bzip2 -9 "$LOGFILE" ################################################################################