Skip to content

Commit b34312e

Browse files
committed
Fix hestiacp#1582 when mainlog is empty / no emails has been made it will give an exit 1 as default. Add error message + exit 0 so the system still works as intended
1 parent a300379 commit b34312e

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)