From d3b4e94d0681b98ea6a7a955051c397cf19c0b88 Mon Sep 17 00:00:00 2001 From: Casper Date: Fri, 8 Dec 2023 01:20:17 +0100 Subject: [PATCH] update-check: fix 'read' exit status (#3688) Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> --- CHANGELOG.md | 1 + target/scripts/update-check.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10d2bb25..3553804f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file. The format - **Internal**: - The container startup welcome log message now references `DMS_RELEASE` ([#3676](https://github.com/docker-mailserver/docker-mailserver/pull/3676)) - `VERSION` was incremented for prior releases to be notified of the v13.0.1 patch release ([#3676](https://github.com/docker-mailserver/docker-mailserver/pull/3676)) + - Update-check: fix 'read' exit status ([#3688](https://github.com/docker-mailserver/docker-mailserver/pull/3688)) - **Rspamd:** - Switch to official arm64 packages to avoid segfaults ([#3686](https://github.com/docker-mailserver/docker-mailserver/pull/3686)) diff --git a/target/scripts/update-check.sh b/target/scripts/update-check.sh index c30594f4..257fc37d 100755 --- a/target/scripts/update-check.sh +++ b/target/scripts/update-check.sh @@ -27,7 +27,7 @@ while true; do # compare versions if dpkg --compare-versions "${VERSION}" lt "${LATEST}"; then # send mail notification to postmaster - read -r -d '' MAIL << EOF + read -r -d '#' MAIL << EOF Hello ${POSTMASTER_ADDRESS}! There is a docker-mailserver update available on your host: $(hostname -f) @@ -35,7 +35,7 @@ There is a docker-mailserver update available on your host: $(hostname -f) Current version: ${VERSION} Latest version: ${LATEST} -Changelog: ${CHANGELOG_URL} +Changelog: ${CHANGELOG_URL}#END EOF _log_with_date 'info' "Update available [ ${VERSION} --> ${LATEST} ]"