]> git.decadent.org.uk Git - dak.git/blob - cron.daily
Initial revision
[dak.git] / cron.daily
1 #! /bin/sh
2 #
3 # Executed daily via cron, out of troup's crontab.
4
5 set -e
6 export SCRIPTVARS=/org/ftp.debian.org/scripts/masterfiles/vars
7 . $SCRIPTVARS
8
9 ##### 
10
11 echo Archive maintenance started at $(date +%X)
12
13 NOTICE="$ftpdir/Archive_Maintenance_In_Progress"
14
15 cleanup() {
16   rm -f "$NOTICE"
17 }
18 trap cleanup 0
19
20 rm -f "$NOTICE"
21 cat > "$NOTICE" <<EOF
22 Packages are currently being installed and indices rebuilt.
23 Maintenance is automatic, starting at 13:52 US Central time, and
24 ending at about 15:30.  This file is then removed.
25
26 You should not mirror the archive during this period.
27 EOF
28
29 ##### 
30
31 TERM=vt100 update-bugdoctxt
32
33 ##### 
34
35 pg_dump > FIXME
36
37 ##### 
38
39 # temporary hack to work around the lack of an apt-utils package
40 export PYTHONPATH=$PYTHONPATH:/org/ftp.debian.org/scripts/apt/build/bin/
41 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/org/ftp.debian.org/scripts/apt/build/bin/
42 export PATH=$PATH:/org/ftp.debian.org/scripts/apt/build/bin/
43
44 cd $incoming
45 rm -f REPORT
46 dak-install -pak *.changes | direport | tee REPORT | \
47      mail -s "Install for $(date +%D)" ftpmaster@ftp-master.debian.org
48 chgrp debadmin REPORT
49 chmod 664 REPORT
50
51 cd $masterdir
52 symlinks -d -r $ftpdir
53
54 cd $masterdir
55 apt-ftparchive generate apt.conf
56 dak-mkmaintainers
57 copyoverrides
58 mklslar
59 mkchecksums
60
61 # [JT] temporary hack to make the buildd daemons and proposed-updates get along
62 pushd /org/ftp.debian.org/ftp/dists/proposed-updates
63 /home/troup/katie/drow *.dsc
64 popd
65
66 rm -f $NOTICE
67 echo Archive maintenance finished at $(date +%X)
68
69 ulimit -m 90000 -d 90000 -s 10000 -v 90000
70
71 run-parts --report /org/ftp.debian.org/scripts/distmnt
72
73 echo Daily cron scripts successful.