mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
scripts: add warning when update-check is enabled, but no stable release image is used (#3684)
This commit is contained in:
parent
c75975d59e
commit
908d38047c
|
@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file. The format
|
||||||
|
|
||||||
- **Tests:**
|
- **Tests:**
|
||||||
- You can now use `make run-local-instance` to run a DMS image that was built locally to test changes ([#3663](https://github.com/docker-mailserver/docker-mailserver/pull/3663))
|
- You can now use `make run-local-instance` to run a DMS image that was built locally to test changes ([#3663](https://github.com/docker-mailserver/docker-mailserver/pull/3663))
|
||||||
|
- Log a warning when update-check is enabled, but no stable release image is used ([#3684](https://github.com/docker-mailserver/docker-mailserver/pull/3684))
|
||||||
|
|
||||||
### Updates
|
### Updates
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,13 @@ function _register_functions() {
|
||||||
|
|
||||||
[[ ${SMTP_ONLY} -ne 1 ]] && _register_start_daemon '_start_daemon_dovecot'
|
[[ ${SMTP_ONLY} -ne 1 ]] && _register_start_daemon '_start_daemon_dovecot'
|
||||||
|
|
||||||
[[ ${ENABLE_UPDATE_CHECK} -eq 1 ]] && [[ ${DMS_RELEASE} != 'edge' ]] && _register_start_daemon '_start_daemon_update_check'
|
if [[ ${ENABLE_UPDATE_CHECK} -eq 1 ]]; then
|
||||||
|
if [[ ${DMS_RELEASE} != 'edge' ]]; then
|
||||||
|
_register_start_daemon '_start_daemon_update_check'
|
||||||
|
else
|
||||||
|
_log 'warn' "ENABLE_UPDATE_CHECK=1 is configured, but image is not a stable release. Update-Check is disabled."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# The order here matters: Since Rspamd is using Redis, Redis should be started before Rspamd.
|
# The order here matters: Since Rspamd is using Redis, Redis should be started before Rspamd.
|
||||||
[[ ${ENABLE_RSPAMD_REDIS} -eq 1 ]] && _register_start_daemon '_start_daemon_rspamd_redis'
|
[[ ${ENABLE_RSPAMD_REDIS} -eq 1 ]] && _register_start_daemon '_start_daemon_rspamd_redis'
|
||||||
|
|
Loading…
Reference in a new issue