+2007-02-08 Ryan Murray <rmurray@debian.org>
+
+ * config/debian/cron.daily: use $base instead of hardcoding path
+ name.
+
+ * scripts/debian/mkfilesindices: source 'vars' file and use it's
+ variables instead of hardcoding path names.
+
2007-02-08 James Troup <james@nocrew.org>
* dak/process_unchecked.py (check_signed_by_key): new function to
################################################################################
echo "Creating pre-daily-cron-job backup of projectb database..."
-pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
+pg_dump projectb > $base/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
################################################################################
./mkchecksums
#
# Fetch bugs information before unchecked processing is allowed again.
-/org/ftp.debian.org/testing/britney bugs
+$base/testing/britney allowdaklock bugs || true
rm -f $NOTICE
ssh buildd@buildd /org/wanna-build/trigger.daily
################################################################################
echo "Creating post-daily-cron-job backup of projectb database..."
-POSTDUMP=/org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
+POSTDUMP=$base/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
pg_dump projectb > $POSTDUMP
-(cd /org/ftp.debian.org/backup; ln -sf $POSTDUMP current)
+(cd $base/backup; ln -sf $POSTDUMP current)
################################################################################
ulimit -m 90000 -d 90000 -s 10000 -v 90000
-run-parts --report /org/ftp.debian.org/scripts/distmnt
+run-parts --report $base/scripts/distmnt
echo Daily cron scripts successful.
#!/bin/sh -e
+export SCRIPTVARS=/org/ftp.debian.org/dak/config/debian/vars
+. $SCRIPTVARS
umask 002
-cd /org/ftp.debian.org/ftp/indices/files/components
+cd $base/ftp/indices/files/components
ARCHLIST=$(tempfile)
(
sed -n 's/|$//p' $ARCHLIST
- cd /org/ftp.debian.org/ftp
+ cd $base/ftp
find ./dists -maxdepth 1 \! -type d
find ./dists \! -type d | grep "/source/"
) | sort -u | gzip -9 > source.list.gz
for a in $ARCHES; do
(sed -n "s/|$a$//p" $ARCHLIST
- cd /org/ftp.debian.org/ftp;
+ cd $base/ftp
find ./dists -maxdepth 1 \! -type d
find ./dists \! -type d | grep -E "(proposed-updates.*_$a.changes$|/main/disks-$a/|/main/installer-$a/|/Contents-$a|/binary-$a/)"
if echo X sparc mips mipsel hppa X | grep -q " $a "; then
printf 'SELECT id, suite_name FROM suite\n' | psql -F' ' -At projectb |
while read id suite; do
- [ -e /org/ftp.debian.org/ftp/dists/$suite ] || continue
+ [ -e $base/ftp/dists/$suite ] || continue
(
- (cd /org/ftp.debian.org/ftp;
+ (cd $base/ftp
distname=$(cd dists; readlink $suite || echo $suite)
find ./dists/$distname \! -type d
for distdir in ./dists/*; do
echo "Finding everything on the ftp site to generate sundries $(date +"%X")..."
-(cd /org/ftp.debian.org/ftp; find . \! -type d \! -name 'Archive_Maintenance_In_Progress' | sort) >$ARCHLIST
+(cd $base/ftp; find . \! -type d \! -name 'Archive_Maintenance_In_Progress' | sort) >$ARCHLIST
rm -f sundries.list
zcat *.list.gz | cat - *.list | sort -u |