From 438a34fd3f5d2c61d574e9a382ec906f9138abc1 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 4 Sep 2010 21:21:02 +0200 Subject: [PATCH] keep a current symlink Signed-off-by: Joerg Jaspert --- config/debian/cron.monthly | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config/debian/cron.monthly b/config/debian/cron.monthly index 3d4c8c11..57706bf8 100755 --- a/config/debian/cron.monthly +++ b/config/debian/cron.monthly @@ -11,7 +11,7 @@ export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars DATE=`date -d yesterday +%y%m` -cd /srv/ftp-master.debian.org/mail/archive +cd ${base}/mail/archive for m in mail bxamail; do if [ -f $m ]; then mv $m ${m}-$DATE @@ -25,4 +25,11 @@ for m in mail bxamail; do fi; done +DATE=`date +%Y-%m` +cd ${base}/log +touch $DATE +ln -sf $DATE current +chmod g+w $DATE +chown dak:ftpteam $DATE + ################################################################################ -- 2.39.5