mirror of
https://github.com/tomav/docker-mailserver
synced 2025-09-05 08:45:30 +00:00
issue warning in case of improper restart (#3129)
This commit is contained in:
@@ -33,6 +33,7 @@ function _register_functions
|
||||
|
||||
# ? >> Checks
|
||||
|
||||
_register_check_function '_check_improper_restart'
|
||||
_register_check_function '_check_hostname'
|
||||
_register_check_function '_check_log_level'
|
||||
|
||||
|
@@ -17,6 +17,17 @@ function _check
|
||||
done
|
||||
}
|
||||
|
||||
function _check_improper_restart
|
||||
{
|
||||
_log 'debug' 'Checking for improper restart'
|
||||
|
||||
if [[ -f /CONTAINER_START ]]
|
||||
then
|
||||
_log 'warn' 'This container was (likely) improperly restarted which can result in undefined behavior'
|
||||
_log 'warn' 'Please destroy the container properly and then start DMS again'
|
||||
fi
|
||||
}
|
||||
|
||||
function _check_hostname
|
||||
{
|
||||
_log 'debug' 'Checking that hostname/domainname is provided or overridden'
|
||||
|
Reference in New Issue
Block a user