5 GZIP='--rsyncable' ; export GZIP
7 # locations used by many scripts
8 base=/srv/ftp-master.debian.org
10 masterdir=${base}/dak/
11 queuedir=${base}/queue/
12 scriptdir=${base}/scripts
14 configdir=${masterdir}/config/debian/
15 dbdir=${base}/database/
16 exportdir=${base}/export/
17 extoverridedir=${scriptdir}/external-overrides
19 incoming=${base}/public/incoming.debian.org/
20 indices=${ftpdir}/indices
22 logdir=${base}/log/cron/
23 mirrordir=${base}/mirror/
25 accepted=${queuedir}/accepted/
26 newstage=${queuedir}/newstage/
27 overridedir=${scriptdir}/override
28 scriptsdir=${masterdir}/scripts/debian/
29 stagedir=${lockdir}/stages
30 unchecked=${queuedir}/unchecked/
32 public=/srv/ftp.debian.org
34 exportpublic=${public}/rsync/export/
37 public_archives=(ftp-master debian-debug)
40 PATH=${masterdir}:${PATH}
42 # Various lockfiles used by multiple cron scripts
43 LOCK_DAILY="${lockdir}/daily.lock"
44 LOCK_UNCHECKED="${lockdir}/unchecked.lock"
45 LOCK_STOP="${lockdir}/archive.stop"
47 # By default, add no timestamps to stage logs
50 # And the following types of cronscripts exists
51 declare -lr POSSIBLEARGS='+(unchecked|dinstall|hourly|daily|weekly|monthly|yearly|mirror)'
52 declare -r HOSTNAME=$(hostname -s)
54 archs=$(dak admin a list | tr '\n' ' ')
56 # Set the database variables
57 eval $(dak admin config db-shell)