[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] append cron.daily's output to dinstall's logfile



(instead of sending spam)

Signed-off-by: Torsten Werner <twerner@debian.org>
---
 config/debian/cron.daily |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/config/debian/cron.daily b/config/debian/cron.daily
index 1ededd0..5b43356 100755
--- a/config/debian/cron.daily
+++ b/config/debian/cron.daily
@@ -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}
-- 
1.5.6.5



Reply to: