Check if CONTAINER_IP could be determined (#2046)

Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Casper 2021-06-19 22:24:06 +02:00 committed by GitHub
parent 4822709000
commit 7293e3c9e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 2 deletions

View file

@ -25,7 +25,7 @@ function _check_hostname
if ! grep -q -E '^(\S+[.]\S+)$' <<< "${HOSTNAME}"
then
_notify 'err' 'Setting hostname/domainname is required'
kill "$(< /var/run/supervisord.pid)"
_shutdown
return 1
fi
}