Fixing the default value for MM_HOSTNAME (#454)
This commit is contained in:
@@ -27,10 +27,10 @@ function wait_for_mysql () {
|
|||||||
echo "# This file is autogenerated at container startup." > /etc/mailman.cfg
|
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
|
# 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.
|
# container.
|
||||||
if [[ ! -v MM_HOSTNAME ]]; then
|
if [[ ! -v MM_HOSTNAME ]]; then
|
||||||
export MM_HOSTNAME=`hostname`
|
export MM_HOSTNAME=`hostname -i`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# SMTP_HOST defaults to the gateway
|
# SMTP_HOST defaults to the gateway
|
||||||
|
|||||||
Reference in New Issue
Block a user