Skip to content

Commit 0607462

Browse files
authored
Merge pull request hestiacp#1583 from hestiacp/fix/1582-improve-output-eximstats
Fix hestiacp#1582 Improve stats exim
2 parents a300379 + b34312e commit 0607462

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bin/v-list-sys-mail-status

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,14 @@ else
4141
eximstats /var/log/exim/main.log 2>/dev/null
4242
fi
4343

44+
if [ $? -ne 0 ]; then
45+
echo "[Exim4] No valid log lines read"
46+
exit 0;
47+
fi
48+
4449

4550
#----------------------------------------------------------#
4651
# Hestia #
4752
#----------------------------------------------------------#
4853

49-
exit
54+
exit 0

0 commit comments

Comments
 (0)