]> git.decadent.org.uk Git - dak.git/blob - config/debian-security/cron.weekly
move dc9 talk to presentations git
[dak.git] / config / debian-security / cron.weekly
1 #!/bin/bash
2 #
3 # Executed weekly via cron, out of dak's crontab.
4
5 set -e
6 export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
7 . $SCRIPTVARS
8
9 LOCKFILE="$lockdir/unchecked.lock"
10
11 ################################################################################
12
13 # Weekly generation of release files, then pushing mirrors.
14 # Used as we have a "Valid-until" field in our release files of 10 days. In case
15 # we dont have a security update in that time...
16 cd $configdir
17
18 cleanup() {
19     rm -f "$LOCKFILE"
20 }
21
22 if ! lockfile -r100 "$LOCKFILE"; then
23     echo "Could not lock $LOCKFILE. Assuming resigning is not needed."
24     exit 0
25 fi
26 trap cleanup EXIT
27
28 dak generate-releases
29
30 cleanup
31 trap - EXIT
32
33 /srv/security-master.debian.org/dak/config/debian-security/make-mirror.sh
34 sudo -u archvsync -H /home/archvsync/signal_security
35
36
37 ################################################################################