]> err.no Git - dak/commitdiff
(no commit message)
authorAnthony Towns <aj@azure.humbug.org.au>
Fri, 15 Mar 2002 07:12:34 +0000 (07:12 +0000)
committerAnthony Towns <aj@azure.humbug.org.au>
Fri, 15 Mar 2002 07:12:34 +0000 (07:12 +0000)
cron.monthly

index 56565cc14ef886b21249c14d799e1b61c462e9af..99bb434fdd008bb42b40a28ac4702e68c9cd9b53 100755 (executable)
@@ -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
 
 ################################################################################