]> git.decadent.org.uk Git - dak.git/blob - config/debian/cron.daily
make wnpp file world readable and do so before moving it
[dak.git] / config / debian / cron.daily
1 #!/bin/sh
2 #
3 # Run daily via cron, out of dak's crontab.
4
5 set -e
6 set -u
7 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
8 . $SCRIPTVARS
9
10 ################################################################################
11
12 TMPFILE=$( mktemp -p ${TMPDIR} )
13
14 function cleanup {
15     ERRVAL=$?
16     rm -f ${TMPFILE}
17     exit ${ERRVAL}
18 }
19 trap cleanup SIGHUP SIGINT SIGPIPE SIGTERM EXIT ERR
20
21 # get the latest list of wnpp bugs and their source packages
22 wget -q -O${TMPFILE} http://qa.debian.org/data/bts/wnpp_rm
23 chmod go+r ${TMPFILE}
24 mv ${TMPFILE} /srv/ftp-master.debian.org/scripts/masterfiles/wnpp_rm
25
26 ################################################################################