3 # Run daily via cron, out of dak's crontab.
8 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
11 # common functions are "outsourced"
12 . "${configdir}/common"
14 ################################################################################
16 TMPFILE=$( mktemp -p ${TMPDIR} )
23 trap cleanup SIGHUP SIGINT SIGPIPE SIGTERM EXIT ERR
25 # log to dinstall's logfile instead of sending email
27 LOGFILE="$logdir/dinstall.log"
28 exec >> "$LOGFILE" 2>&1
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
33 mv ${TMPFILE} /srv/ftp-master.debian.org/scripts/masterfiles/wnpp_rm
35 # Push files over to security
36 # The key over there should have the following set for the ssh key:
37 # command="/usr/bin/xzcat | /usr/bin/psql -f - -1 obscurity"
38 pg_dump -a -F p -t files | \
39 sed -e "s,^COPY files (,DELETE FROM external_files; COPY external_files (," | \
41 ssh -o BatchMode=yes -o ConnectTimeout=30 -o SetupTimeout=30 -2 \
42 -i ${base}/s3kr1t/push_external_files dak@security-master.debian.org sync
44 # Update wanna-build dump
45 echo "Update wanna-build database dump"
46 $base/dak/scripts/nfu/get-w-b-db
52 # Generate list of override disparities
53 dak override-disparity | gzip -9 > ${webdir}/override-disparity.gz
55 # Generate stats about the new queue
56 dak stats new ${webdir}/NEW-stats.yaml 2> /dev/null
58 # Generate the contributor data
59 # FIXME: In a day or three, when this worked from cron without
60 # failure, redirect its output to dev/null. Alternatively until then
61 # enrico added a --quiet and we use that.
62 dc-tool --mine="${configdir}/contributor.source" --auth-token @"${base}/s3kr1t/contributor.auth" --source ftp.debian.org --post
64 ${scriptsdir}/link_morgue.sh
66 ################################################################################