]> git.decadent.org.uk Git - dak.git/commitdiff
append cron.daily's output to dinstall's logfile
authorTorsten Werner <twerner@debian.org>
Sun, 2 Jan 2011 11:15:20 +0000 (12:15 +0100)
committerTorsten Werner <twerner@debian.org>
Sun, 2 Jan 2011 11:15:20 +0000 (12:15 +0100)
(instead of sending spam)

Signed-off-by: Torsten Werner <twerner@debian.org>
config/debian/cron.daily

index 1ededd036545b2e7b7e89bfeb2f93a677976ec06..5b4335684f6c97eaca0cd6e5a4f3b98dffec378f 100755 (executable)
@@ -21,6 +21,11 @@ function cleanup {
 }
 trap cleanup SIGHUP SIGINT SIGPIPE SIGTERM EXIT ERR
 
+# log to dinstall's logfile instead of sending email
+PROGRAM="cron.daily"
+LOGFILE="$logdir/dinstall.log"
+exec >> "$LOGFILE" 2>&1
+
 # get the latest list of wnpp bugs and their source packages
 wget -q -O${TMPFILE} http://qa.debian.org/data/bts/wnpp_rm
 chmod go+r ${TMPFILE}