From: Joerg Jaspert Date: Tue, 1 Jan 2013 10:01:14 +0000 (+0100) Subject: monthly rotation of the queued log on franck X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91d4e41e4af784986d9af70c5b881438a791c83a;p=dak monthly rotation of the queued log on franck Signed-off-by: Joerg Jaspert --- diff --git a/config/debian/cron.monthly b/config/debian/cron.monthly index 3ca4a81a..233e1018 100755 --- a/config/debian/cron.monthly +++ b/config/debian/cron.monthly @@ -26,11 +26,19 @@ for m in mail bxamail; do fi; done -DATE=`date +%Y-%m` +DATE=$(date +%Y-%m) cd ${base}/log touch $DATE ln -sf $DATE current chmod g+w $DATE chown dak:ftpteam $DATE +DATE=$(date -d yesterday +$Y-%m) +cd /srv/upload.debian.org/queued +/srv/upload.debian.org/queued/debianqueued -k || true +mv log log.${DATE} +touch log +xz -9 log.${DATE} +/srv/upload.debian.org/queued/debianqueued 2>/dev/null + ################################################################################