From 91d4e41e4af784986d9af70c5b881438a791c83a Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Tue, 1 Jan 2013 11:01:14 +0100 Subject: [PATCH] monthly rotation of the queued log on franck Signed-off-by: Joerg Jaspert --- config/debian/cron.monthly | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 + ################################################################################ -- 2.39.5