From c46edee8f9fcea219dcd737e0cead1059c378ee9 Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Fri, 2 Oct 2020 01:19:41 +0200 Subject: [PATCH] Mark the end of restarts due to changes by moving the checksum file --- target/check-for-changes.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target/check-for-changes.sh b/target/check-for-changes.sh index d1808d54..fe4d2851 100755 --- a/target/check-for-changes.sh +++ b/target/check-for-changes.sh @@ -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