mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-24 20:54:43 +02:00
change if style (#3361)
This commit is contained in:
parent
0e592aa911
commit
cf74127f78
58 changed files with 297 additions and 594 deletions
|
@ -12,8 +12,7 @@ SENDER=${3}
|
|||
# The case that the mail.log.1 file isn't readable shouldn't
|
||||
# actually be possible with logrotate not rotating empty files..
|
||||
# But you never know!
|
||||
if [[ -r "/var/log/mail/mail.log.1" ]]
|
||||
then
|
||||
if [[ -r "/var/log/mail/mail.log.1" ]]; then
|
||||
BODY=$(/usr/sbin/pflogsumm /var/log/mail/mail.log.1 --problems-first)
|
||||
else
|
||||
BODY="Error: Mail log not readable or not found: /var/log/mail/mail.log.1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue