X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.hourly;h=e9696d46968e3a31e74795506eb37e7606b7d9b9;hb=0afe19266afa3f9995dd4e17c76cfbca8a9f1216;hp=fa565c4e7e45adc3b8c93508d27472dc220b0f56;hpb=df6e3e5f79788962ecb9f2d283ef640c6fef0301;p=dak.git diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly index fa565c4e..e9696d46 100755 --- a/config/debian/cron.hourly +++ b/config/debian/cron.hourly @@ -20,15 +20,21 @@ dak import-users-from-passwd # do not run show-new and other stuff in parallel LOCKFILE="$lockdir/unchecked.lock" +cleanup() { + rm -f "${LOCKFILE}" +} + if lockfile -r16 $LOCKFILE 2> /dev/null; then + trap cleanup EXIT do_new dak show-new > /dev/null || true - rm -f $LOCKFILE + cleanup + trap - EXIT fi dak queue-report -n > $webdir/new.html dak queue-report -8 -d new,byhand,stable-new,oldstable-new -r $webdir/stat -dak show-deferred -r $webdir/stat > ${webdir}/deferred.html +sudo -u dak-unpriv dak show-deferred -r $webdir/stat > ${webdir}/deferred.html dak graph -n new,byhand,stable-new,oldstable-new,deferred -r $webdir/stat -i $webdir/stat -x $scriptsdir/rrd-release-freeze-dates cd $webdir @@ -42,10 +48,21 @@ $base/dak/tools/removals.pl $configdir/removalsrss.rc > $webdir/rss/removals.rss # Tell ries to sync its tree -ssh -o Batchmode=yes -o ConnectTimeout=30 -o SetupTimeout=30 -2 -i ${base}/s3kr1t/pushddmirror dak@ries.debian.org sync +${scriptsdir}/sync-dd ries-sync ries-sync1 ries-sync2 sync $scriptsdir/generate-di +# Push files over to security +#pg_dump -a -F p -t files | sed -e "s,^COPY files (,DELETE FROM external_files; COPY external_files (," | xz -3 | \ +# ssh -o BatchMode=yes -o ConnectTimeout=30 -o SetupTimeout=30 -2 -i ${base}/s3kr1t/push-external_files dak@wherever sync +# +# The key should run the following command: +# 'xzcat | pg_restore -1 -a' + +# Update backports ACL +sudo -u dak-unpriv cat /srv/backports-master.debian.org/etc/acl \ + | dak acl set-fingerprints backports \ + | mail -a "X-Debian: DAK" -e -s "backports: acl changes" team@backports.debian.org -- -F "Debian FTP Masters" -f ftpmaster@ftp-master.debian.org # do the buildd key updates BUILDDFUN=$(mktemp -p "${TMPDIR}" BUILDDFUN.XXXXXX)