]> git.decadent.org.uk Git - dak.git/blob - config/debian/dinstall.variables
Make timestamping configurable and only let dinstall have it for now
[dak.git] / config / debian / dinstall.variables
1 # -*- mode:sh -*-
2 # usually we are not using debug logs. Set to 1 if you want them.
3 DEBUG=0
4
5 # where do we want mails to go? For example log entries made with error()
6 if [[ ${HOSTNAME} != franck ]]; then
7     # Not our ftpmaster host
8     MAILTO=${MAILTO:-"root"}
9 else
10     # Yay, ftpmaster
11     MAILTO=${MAILTO:-"ftpmaster@debian.org"}
12 fi
13
14 # How many logfiles to keep
15 LOGROTATE=${LOGROTATE:-400}
16
17 # Marker for dinstall start
18 DINSTALLSTART="${lockdir}/dinstallstart"
19 # Marker for dinstall end
20 DINSTALLEND="${lockdir}/dinstallend"
21
22 # Timestamp for start
23 DINSTALLBEGIN="$(date -u +"%a %b %d %T %Z %Y (%s)")"
24
25 # Lock cron.unchecked from doing work
26 LOCK_ACCEPTED="$lockdir/unchecked.lock"
27
28 # This file is simply used to indicate to britney whether or not
29 # the Packages file updates completed sucessfully.  It's not a lock
30 # from our point of view
31 LOCK_BRITNEY="$lockdir/britney.lock"
32
33 # If this file exists we exit immediately after the currently running
34 # function is done
35 LOCK_STOP="$lockdir/archive.stop"
36
37 # Lock buildd updates
38 LOCK_BUILDD="$lockdir/buildd.lock"
39
40 # Lock changelog updates
41 LOCK_CHANGELOG="$lockdir/changelog.lock"
42
43 # Statefile for the users
44 DINSTALLSTATE="${webdir}/dinstall.status"
45
46 # dists for which we import external data (i18n, dep11)
47 # as thats usually testing and unstable, but we need codenames,
48 # get em out of the db.
49 extimportdists=""
50 for suite in testing unstable; do
51     codename=$(dak admin s show ${suite}|grep '^Codename')
52     codename=${codename##* }
53     extimportdists="${extimportdists} ${codename}"
54 done
55
56 # Common wget options
57 wgetopts="-t2 -T20 -q -N --ca-directory=/etc/ssl/ca-debian"
58
59 # dinstall wants timestamps added to stage logs
60 TIMESTAMP=true