1
1
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2025-04-22 22:58:00 +02:00

chore: simplify startup conditional block

Signed-off-by: georglauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
georglauterbach 2025-01-19 10:53:19 +01:00
parent 22022481e2
commit f0735fcfb1
No known key found for this signature in database
GPG Key ID: F367F7C43C118578

@ -176,25 +176,20 @@ function _register_functions() {
# ? >> Executing all stacks / actual start of DMS
# ------------------------------------------------------------
_early_supervisor_setup
_early_variables_setup
_log 'info' "Welcome to docker-mailserver ${DMS_RELEASE}"
_register_functions
_check
# Ensure DMS only adjusts config files for a new container.
# Container restarts should skip as they retain the modified config.
if [[ ! -f /CONTAINER_START ]]; then
_early_supervisor_setup
_early_variables_setup
_log 'info' "Welcome to docker-mailserver ${DMS_RELEASE}"
_register_functions
_check
_setup
else
# container was restarted
_early_variables_setup
if [[ -f /CONTAINER_START ]]; then
_log 'info' 'Container was restarted. Skipping setup routines.'
_log 'info' "Welcome to docker-mailserver ${DMS_RELEASE}"
_register_functions
else
_setup
fi
# marker to check if container was restarted