]> git.decadent.org.uk Git - dak.git/blob - config/debian/cron.daily
Fix dc-tool call. in a day or two fix it again by redirecting its spam to dev/null
[dak.git] / config / debian / cron.daily
1 #! /bin/bash
2 #
3 # Run daily via cron, out of dak's crontab.
4
5 set -e
6 set -o pipefail
7 set -u
8 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
9 . $SCRIPTVARS
10
11 # common functions are "outsourced"
12 . "${configdir}/common"
13
14 ################################################################################
15
16 TMPFILE=$( mktemp -p ${TMPDIR} )
17
18 function cleanup {
19     ERRVAL=$?
20     rm -f ${TMPFILE}
21     exit ${ERRVAL}
22 }
23 trap cleanup SIGHUP SIGINT SIGPIPE SIGTERM EXIT ERR
24
25 # log to dinstall's logfile instead of sending email
26 PROGRAM="cron.daily"
27 LOGFILE="$logdir/dinstall.log"
28 exec >> "$LOGFILE" 2>&1
29
30 # get the latest list of wnpp bugs and their source packages
31 wget -q -O${TMPFILE} http://qa.debian.org/data/bts/wnpp_rm
32 chmod go+r ${TMPFILE}
33 mv ${TMPFILE} /srv/ftp-master.debian.org/scripts/masterfiles/wnpp_rm
34
35 # Update wanna-build dump
36 echo "Update wanna-build database dump"
37 $base/dak/scripts/nfu/get-w-b-db
38
39 reports
40
41 clean_debbugs
42
43 # Generate list of override disparities
44 dak override-disparity | gzip -9 > ${webdir}/override-disparity.gz
45
46 # Generate stats about the new queue
47 dak stats new ${webdir}/NEW-stats.yaml 2> /dev/null
48
49 # Generate the contributor data
50 # FIXME: In a day or three, when this worked from cron without
51 # failure, redirect its output to dev/null. Alternatively until then
52 # enrico added a --quiet and we use that.
53 dc-tool --mine="${configdir}/contributor.source" --auth-token @"${base}/s3kr1t/contributor.auth" --source ftp.debian.org --post
54
55 ${scriptsdir}/link_morgue.sh
56
57 ################################################################################