update-check: fix 'read' exit status (#3688)

Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Casper 2023-12-08 01:20:17 +01:00 committed by GitHub
parent 77917f5cc6
commit d3b4e94d06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file. The format
- **Internal**: - **Internal**:
- The container startup welcome log message now references `DMS_RELEASE` ([#3676](https://github.com/docker-mailserver/docker-mailserver/pull/3676)) - 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)) - `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:** - **Rspamd:**
- Switch to official arm64 packages to avoid segfaults ([#3686](https://github.com/docker-mailserver/docker-mailserver/pull/3686)) - Switch to official arm64 packages to avoid segfaults ([#3686](https://github.com/docker-mailserver/docker-mailserver/pull/3686))

View file

@ -27,7 +27,7 @@ while true; do
# compare versions # compare versions
if dpkg --compare-versions "${VERSION}" lt "${LATEST}"; then if dpkg --compare-versions "${VERSION}" lt "${LATEST}"; then
# send mail notification to postmaster # send mail notification to postmaster
read -r -d '' MAIL << EOF read -r -d '#' MAIL << EOF
Hello ${POSTMASTER_ADDRESS}! Hello ${POSTMASTER_ADDRESS}!
There is a docker-mailserver update available on your host: $(hostname -f) 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} Current version: ${VERSION}
Latest version: ${LATEST} Latest version: ${LATEST}
Changelog: ${CHANGELOG_URL} Changelog: ${CHANGELOG_URL}#END
EOF EOF
_log_with_date 'info' "Update available [ ${VERSION} --> ${LATEST} ]" _log_with_date 'info' "Update available [ ${VERSION} --> ${LATEST} ]"