Fix daily mailq script for Postfix and daily_show_success="NO"
Exit with a zero status when Postfix reports "Mail queue is empty" so this section won't appear in the report at all when daily_show_success="NO". MFC after: 2 weeks Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
ce738ff2b3
commit
9010f9e08c
@ -33,7 +33,7 @@ case "$daily_status_mailq_enable" in
|
||||
*)
|
||||
mailq;;
|
||||
esac | tee /dev/stderr |
|
||||
egrep -v '(mqueue is empty|Total requests)' | wc -l)
|
||||
egrep -v '((Mail |m)queue is empty|Total requests)' | wc -l)
|
||||
[ $rc -gt 0 ] && rc=1 || rc=0
|
||||
|
||||
case "$daily_status_include_submit_mailq" in
|
||||
|
Loading…
x
Reference in New Issue
Block a user