mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-06-28 03:30:24 +02:00
issue warning in case of improper restart (#3129)
This commit is contained in:
parent
0949f16344
commit
f3edcf9cd5
3 changed files with 14 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue