3 # Executed daily via cron, out of troup's crontab.
6 export SCRIPTVARS=/org/non-us.debian.org/katie/vars-non-US
9 ################################################################################
11 echo Archive maintenance started at $(date +%X)
13 NOTICE="$ftpdir/Archive_Maintenance_In_Progress"
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.
26 You should not mirror the archive during this period.
29 ################################################################################
31 echo "Creating pre-daily-cron-job backup of projectb database..."
32 pg_dump projectb > /org/non-us.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
34 ################################################################################
36 # temporary hack to work around the lack of an apt-utils & python-apt package
37 export PYTHONPATH=$PYTHONPATH:/org/non-us.debian.org/scripts/apt/build/bin/
38 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/org/non-us.debian.org/scripts/apt/build/bin/
39 export PATH=$PATH:/org/non-us.debian.org/scripts/apt/build/bin/
43 katie -pak *.changes | direport | tee REPORT | \
44 mail -s "Non-US Install for $(date +%D)" ftpmaster@ftp-master.debian.org
49 symlinks -d -r $ftpdir
54 cd /org/non-us.debian.org/database/dists/
55 for i in proposed-updates_-_binary-*; do cat $i >> proposed-updates_-_binary.list; done
57 apt-ftparchive generate apt.conf-non-US
59 # Clean out old packages
63 charisma > .new-maintainers
64 mv -f .new-maintainers Maintainers
65 gzip -9v <Maintainers >.new-maintainers.gz
66 mv -f .new-maintainers.gz Maintainers.gz
73 echo Archive maintenance finished at $(date +%X)
75 ################################################################################
77 echo "Creating post-daily-cron-job backup of projectb database..."
78 pg_dump projectb > /org/non-us.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
80 ################################################################################
82 ulimit -m 90000 -d 90000 -s 10000 -v 90000
84 run-parts --report /org/non-us.debian.org/scripts/distmnt
86 echo Daily cron scripts successful.