diff options
author | brian <brian@FreeBSD.org> | 2002-04-30 17:07:32 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-04-30 17:07:32 +0000 |
commit | 0e37ad70ef61653d270b66d9a55c9a996dbbaa77 (patch) | |
tree | e30254aad9f1ea7a94124257cbaa5bd06e6ec980 /etc/periodic/daily | |
parent | 2d4af411cc74776d8ffda95408d6aa8a073e7557 (diff) | |
download | FreeBSD-src-0e37ad70ef61653d270b66d9a55c9a996dbbaa77.zip FreeBSD-src-0e37ad70ef61653d270b66d9a55c9a996dbbaa77.tar.gz |
Handle .bz2 files created by newsyslog
PR: 37529
Partially submitted by: Peter Hollaubek <fifteen@inext.hu>
MFC after: 1 week
Diffstat (limited to 'etc/periodic/daily')
-rwxr-xr-x | etc/periodic/daily/460.status-mail-rejects | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/periodic/daily/460.status-mail-rejects b/etc/periodic/daily/460.status-mail-rejects index 5a92130..1c7f071 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 |