diff options
author | Brian Somers <brian@FreeBSD.org> | 2002-05-13 21:36:44 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 2002-05-13 21:36:44 +0000 |
commit | afd6866ee43e81cb41535207f8f3af951286c965 (patch) | |
tree | 4cd187c7b31f5baad740378959d4cbccf679222c /etc | |
parent | 71afbfc141ee551db1e564155bbf8e5a0fcccbaa (diff) | |
download | src-afd6866ee43e81cb41535207f8f3af951286c965.tar.gz src-afd6866ee43e81cb41535207f8f3af951286c965.zip |
MFC: Handle .bz2 files correctly.
Approved by: re (bmah)
Notes
Notes:
svn path=/stable/4/; revision=96547
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/periodic/daily/460.status-mail-rejects | 3 | ||||
-rwxr-xr-x | etc/periodic/monthly/200.accounting | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/etc/periodic/daily/460.status-mail-rejects b/etc/periodic/daily/460.status-mail-rejects index 5a92130fb091..1c7f071f4fbd 100755 --- a/etc/periodic/daily/460.status-mail-rejects +++ b/etc/periodic/daily/460.status-mail-rejects @@ -43,6 +43,9 @@ case "$daily_status_mail_rejects_enable" in elif [ -f /var/log/maillog.$n.gz ] then zcat -fc /var/log/maillog.$n.gz + elif [ -f /var/log/maillog.$n.bz2 ] + then + bzcat -fc /var/log/maillog.$n.bz2 fi n=$(($n - 1)) done diff --git a/etc/periodic/monthly/200.accounting b/etc/periodic/monthly/200.accounting index 402c36dbff85..2142193978f0 100755 --- a/etc/periodic/monthly/200.accounting +++ b/etc/periodic/monthly/200.accounting @@ -22,6 +22,10 @@ case "$monthly_accounting_enable" in then remove=YES zcat $W.0.gz > $W.0 || rc=1 + elif [ -f $W.0.bz2 ] + then + remove=YES + bzcat $W.0.bz2 > $W.0 || rc=1 else echo '$monthly_accounting_enable is set but' \ "$W.0 doesn't exist" |