From: Anthony Towns Date: Fri, 15 Mar 2002 07:12:34 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=459bebc21b63571d56133cd807ff0a313db89204;p=dak.git --- diff --git a/cron.monthly b/cron.monthly index 56565cc1..99bb434f 100755 --- a/cron.monthly +++ b/cron.monthly @@ -11,12 +11,14 @@ export SCRIPTVARS=/org/ftp.debian.org/katie/vars DATE=`date -d yesterday +%y%m` cd /org/ftp.debian.org/mail/archive -if [ -f mail ]; then - mv mail mail-$DATE - sleep 20 - gzip -9 mail-$DATE - chgrp debadmin mail-$DATE.gz - chmod 660 mail-$DATE.gz -fi; +for m in mail bxamail; do + if [ -f $m ]; then + mv $m ${m}-$DATE + sleep 20 + gzip -9 ${m}-$DATE + chgrp debadmin ${m}-$DATE.gz + chmod 660 ${m}-$DATE.gz + fi; +done ################################################################################