2006-06-11 James Troup <james@nocrew.org>
+ * config/debian/vars (configdir): add new variable pointing to
+ this directory.
+
+ * config/debian/cron.daily: use $configdir inplace of $masterdir
+ when that's what we mean, and don't cd into $masterdir just to run
+ dak scripts as we don't need to do that anymore.
+ * config/debian/cron.hourly: likewise.
+ * config/debian/cron.unchecked: likewise.
+ * config/debian/cron.weekly: likewise.
+
* config/debian/dak.conf
(Import-Users-From-Passwd::KnownPostgres): temporarily add 'katie'
user back to list of known users as it's non-trivial to entirely
TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
-cd $masterdir
dak check-overrides
rm -f $LOCKAC
TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
-cd $masterdir
dak make-suite-file-list
TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
# Generate Packages and Sources files
-cd $masterdir
+cd $configdir
apt-ftparchive generate apt.conf
# Generate *.diff/ incremental updates
dak generate-index-diffs
TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
# Stats pr0n
-cd $masterdir
update-ftpstats $base/log/* > $base/misc/ftpstats.data
R --slave --vanilla < $base/misc/ftpstats.R
export SCRIPTVARS=/org/ftp.debian.org/dak/config/debian/vars
. $SCRIPTVARS
-cd $masterdir
dak import-users-from-passwd
dak queue-report -n > $webdir/new.html
cat override.sid.$i.src >> override.sid.all3.src
fi
done
- cd $masterdir
+ cd $configdir
apt-ftparchive -qq generate apt.conf.buildd
- . $masterdir/cron.buildd
+ . $configdir/cron.buildd
fi
else
echo "$timestamp": Nothing to do >> $report
# Clean up apt-ftparchive's databases
-cd $masterdir
+cd $configdir
apt-ftparchive -q clean apt.conf
apt-ftparchive -q clean apt.conf.buildd
scriptdir=$base/scripts
masterdir=$base/dak/
+configdir=$base/dak/config/debian/
dbdir=$base/database/
lockdir=$base/lock/
overridedir=$scriptdir/override