mirror of
https://github.com/tomav/docker-mailserver
synced 2025-09-02 23:35:11 +00:00
function _defunc removed (#2199)
* function _defunc removed * _shutdown is better than just notify in that cases * PANIC_TYPE 'fail-init' introduced Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
@@ -5,7 +5,7 @@ function check
|
||||
_notify 'tasklog' 'Checking configuration'
|
||||
for FUNC in "${FUNCS_CHECK[@]}"
|
||||
do
|
||||
${FUNC} || _defunc
|
||||
${FUNC}
|
||||
done
|
||||
}
|
||||
|
||||
@@ -20,6 +20,5 @@ function _check_hostname
|
||||
if ! grep -q -E '^(\S+[.]\S+)$' <<< "${HOSTNAME}"
|
||||
then
|
||||
_shutdown 'Setting hostname/domainname is required'
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
Reference in New Issue
Block a user