X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.monthly;h=3d4c8c1164a944e93b306cb48078f36f13fcd28e;hb=6411bdb24f02bb6ab902502ae4b0c78bf7dc9034;hp=99bb434fdd008bb42b40a28ac4702e68c9cd9b53;hpb=59fd5aa2a8be3b76dbc968429c457f096adfa472;p=dak.git diff --git a/config/debian/cron.monthly b/config/debian/cron.monthly index 99bb434f..3d4c8c11 100755 --- a/config/debian/cron.monthly +++ b/config/debian/cron.monthly @@ -1,22 +1,26 @@ #!/bin/sh # -# Run at the beginning of the month via cron, out of katie's crontab. +# Run at the beginning of the month via cron, out of dak's crontab. set -e -export SCRIPTVARS=/org/ftp.debian.org/katie/vars +set -u +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 /srv/ftp-master.debian.org/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