diff --git a/target/scripts/start-mailserver.sh b/target/scripts/start-mailserver.sh index 3cd54696..271bc621 100755 --- a/target/scripts/start-mailserver.sh +++ b/target/scripts/start-mailserver.sh @@ -199,7 +199,7 @@ MAIN_LOGFILE=/var/log/mail/mail.log # NOTE: rsyslogd would usually create this later during `_start_daemons`, however it would already exist if the container was restarted. touch "${MAIN_LOGFILE}" # Ensure `tail` follows the correct position of the log file for this container start (new logs begin once `_start_daemons` is called) -TAIL_START=$(wc -l < "${MAIN_LOGFILE}") +TAIL_START=$(( $(wc -l < "${MAIN_LOGFILE}") + 1 )) [[ ${LOG_LEVEL} =~ (debug|trace) ]] && print-environment _start_daemons