1
1
Fork 0
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-05-24 13:26:03 +02:00

Mark the end of restarts due to changes by moving the checksum file

This commit is contained in:
Martin Schulze 2020-10-02 01:19:41 +02:00
parent 05deaa3196
commit c46edee8f9

View File

@ -53,7 +53,6 @@ do
then
echo "${LOG_DATE} Change detected"
CHANGED=$(grep -Fxvf "${CHKSUM_FILE}" "${CHKSUM_FILE}.new" | sed 's/^[^ ]\+ //')
mv "${CHKSUM_FILE}.new" "${CHKSUM_FILE}"
# Bug alert! This overwrites the alias set by start-mailserver.sh
# Take care that changes in one script are propagated to the other
@ -231,6 +230,9 @@ s/$/ regexp:\/etc\/postfix\/regexp/
# prevent restart of dovecot when smtp_only=1
[[ ${SMTP_ONLY} -ne 1 ]] && supervisorctl restart dovecot
) 200<postfix-accounts.cf # end lock
# mark changes as applied
mv "${CHKSUM_FILE}.new" "${CHKSUM_FILE}"
fi
sleep 1