[dak/master] monthly rotation of the queued log on franck
Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
config/debian/cron.monthly | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/config/debian/cron.monthly b/config/debian/cron.monthly
index 3ca4a81..233e101 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
+
################################################################################
--
1.7.2.5
Reply to: