3 # Executed daily via cron, out of dak's crontab.
7 export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
10 LOCKFILE="$lockdir/unchecked.lock"
12 ################################################################################
16 rsync --delete -r --include=override\* --exclude=\* --password-file /srv/security-master.debian.org/s3kr1t/rsync-password -ql security-master@ftp-master::indices/ $overridedir
19 for file in override*.gz; do
20 zcat $file > $(basename $file .gz)
22 find . -maxdepth 1 -mindepth 1 -type l | xargs --no-run-if-empty rm
24 for suite in oldstable stable testing; do
26 oldstable) override_suite=wheezy ;;
27 stable) override_suite=jessie ;;
28 testing) override_suite=stretch ;;
29 *) echo "Unknown suite type ($suite)"; exit 1;;
31 for component in $components; do
32 for override_type in $override_types; do
33 case $override_type in
36 udeb) type=".debian-installer" ;;
39 if [ "$override_type" = "udeb" ]; then
40 if [ ! "$component" = "main" ]; then
45 OFILE="override.$override_suite.$component$type.gz"
46 if [ -r "$OFILE" ]; then
47 zcat "$OFILE" | dak control-overrides -q -a -t $override_type -s $suite -c updates/$component
53 ################################################################################
56 dak import-keyring -L /srv/keyring.debian.org/keyrings/debian-keyring.gpg
62 if ! lockfile -r100 "$LOCKFILE"; then
63 echo "Could not lock $LOCKFILE." >&2
68 dak clean-queues -i ${unchecked}
69 dak clean-queues -i $disembargo
75 symlinks -d -r $ftpdir
77 pg_file="${base}/dak-backup/dump_$(date +%Y.%m.%d-%H:%M:%S)"
78 pg_dump obscurity > "${pg_file}"
79 nice xz -9 "${pg_file}"
81 find "${base}/dak-backup" -mtime +30 \! -name '.nobackup' -delete
83 ################################################################################