[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] keep a current symlink



Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 config/debian/cron.monthly |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/config/debian/cron.monthly b/config/debian/cron.monthly
index 3d4c8c1..57706bf 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
+
 ################################################################################
-- 
1.5.6.5


Reply to: