mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-10 01:15:00 +02:00
scripts: improve shutdown function by making PANIC_STRATEGY obsolete (#3265)
This commit is contained in:
parent
a735dddc52
commit
ea07bcdb4c
9 changed files with 19 additions and 28 deletions
|
@ -175,7 +175,7 @@ function _setup_dovecot_local_user
|
|||
fi
|
||||
done
|
||||
|
||||
_dms_panic__fail_init 'accounts provisioning because no accounts were provided - Dovecot could not be started' '' 'immediate'
|
||||
_dms_panic__fail_init 'accounts provisioning because no accounts were provided - Dovecot could not be started'
|
||||
}
|
||||
|
||||
__wait_until_an_account_is_added_or_shutdown
|
||||
|
@ -199,7 +199,7 @@ function _setup_dovecot_inet_protocols
|
|||
PROTOCOL='[::]' # IPv6 only
|
||||
else
|
||||
# Unknown value, panic.
|
||||
_dms_panic__invalid_value 'DOVECOT_INET_PROTOCOLS' "${DOVECOT_INET_PROTOCOLS}" 'immediate'
|
||||
_dms_panic__invalid_value 'DOVECOT_INET_PROTOCOLS' "${DOVECOT_INET_PROTOCOLS}"
|
||||
fi
|
||||
|
||||
sedfile -i "s|^#listen =.*|listen = ${PROTOCOL}|g" /etc/dovecot/dovecot.conf
|
||||
|
|
|
@ -22,7 +22,7 @@ function _setup_docker_permit
|
|||
if [[ -z ${CONTAINER_IP} ]]
|
||||
then
|
||||
_log 'error' 'Detecting the container IP address failed'
|
||||
_dms_panic__misconfigured 'NETWORK_INTERFACE' 'Network Setup [docker_permit]' 'immediate'
|
||||
_dms_panic__misconfigured 'NETWORK_INTERFACE' 'Network Setup [docker_permit]'
|
||||
fi
|
||||
|
||||
while read -r IP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue