]> git.decadent.org.uk Git - dak.git/blob - config/debian/cron.hourly
add security apache.conf
[dak.git] / config / debian / cron.hourly
1 #! /bin/sh
2 #
3 # Executed hourly via cron, out of dak's crontab.
4
5 set -e
6 set -u
7
8 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
9 . $SCRIPTVARS
10
11 dak import-users-from-passwd
12 dak queue-report -n > $webdir/new.html
13 dak queue-report -8 -d new,byhand,proposedupdates,oldproposedupdates
14 dak show-deferred > ${webdir}/deferred.html
15
16 # do not run show-new and other stuff in parallel
17 LOCKFILE="$lockdir/unchecked.lock"
18 if lockfile -r16 $LOCKFILE 2> /dev/null; then
19     dak show-new > /dev/null
20     rm -f $LOCKFILE
21 fi
22
23 cd $webdir
24 cat removals-20*.txt > removals-full.txt
25 cat removals.txt >> removals-full.txt
26 cat removals-20*.822 > removals-full.822
27 cat removals.822 >> removals-full.822
28
29 $base/dak/tools/queue_rss.py -q $queuedir/new -o $webdir/rss/ -d $base/misc -l $base/log/
30 $base/dak/tools/removals.pl $configdir/removalsrss.rc > $webdir/rss/removals.rss
31
32 $scriptsdir/generate-di