From 0d38c5b79325493905ebf13b35f3aafc05160a15 Mon Sep 17 00:00:00 2001 From: Danil Smirnov <27999539+danil-smirnov@users.noreply.github.com> Date: Thu, 1 Apr 2021 18:41:56 +0300 Subject: [PATCH] Fixing the default value for MM_HOSTNAME (#454) --- core/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/docker-entrypoint.sh b/core/docker-entrypoint.sh index e2e5d56..6bc9d38 100755 --- a/core/docker-entrypoint.sh +++ b/core/docker-entrypoint.sh @@ -27,10 +27,10 @@ function wait_for_mysql () { echo "# This file is autogenerated at container startup." > /etc/mailman.cfg # Check if $MM_HOSTNAME is set, if not, set it to the value returned by -# `hostname` command to set it to whatever hostname is assigned to the +# `hostname -i` command to set it to whatever IP address is assigned to the # container. if [[ ! -v MM_HOSTNAME ]]; then - export MM_HOSTNAME=`hostname` + export MM_HOSTNAME=`hostname -i` fi # SMTP_HOST defaults to the gateway