X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.monthly;h=57706bf8160ad49ad86be3ea6535f2440521931f;hb=6d03dbb954cd67e522374c12225aa08a129e5d60;hp=9d7a68ba9abcdd227b23d20c23db36717391d151;hpb=1d8f8262d7d8033f333fedb43ba0540efea066a9;p=dak.git diff --git a/config/debian/cron.monthly b/config/debian/cron.monthly index 9d7a68ba..57706bf8 100755 --- a/config/debian/cron.monthly +++ b/config/debian/cron.monthly @@ -4,22 +4,32 @@ set -e set -u -export SCRIPTVARS=/org/ftp.debian.org/dak/config/debian/vars +export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars . $SCRIPTVARS ################################################################################ DATE=`date -d yesterday +%y%m` -cd /org/ftp.debian.org/mail/archive +cd ${base}/mail/archive for m in mail bxamail; do if [ -f $m ]; then mv $m ${m}-$DATE + touch ${m} + chown dak:ftpteam ${m} + chmod 660 ${m} sleep 20 gzip -9 ${m}-$DATE - chgrp debadmin ${m}-$DATE.gz + chgrp $ftpgroup ${m}-$DATE.gz chmod 660 ${m}-$DATE.gz fi; done +DATE=`date +%Y-%m` +cd ${base}/log +touch $DATE +ln -sf $DATE current +chmod g+w $DATE +chown dak:ftpteam $DATE + ################################################################################