X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=config%2Fdebian%2Fcron.hourly;h=e9696d46968e3a31e74795506eb37e7606b7d9b9;hb=abcd0f018dc49a218ce70d22e97fc7b654fcf1c8;hp=cbc687fb219b4e1e1c730d49e640baff46ef0843;hpb=01c3e3976cf234ca463ded32f09ea238251b0155;p=dak.git diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly index cbc687fb..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 @@ -53,6 +59,11 @@ $scriptsdir/generate-di # 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) exec >> "${BUILDDFUN}" 2>&1