1
0
mirror of https://github.com/tomav/docker-mailserver.git synced 2024-06-27 11:45:41 +02:00

Merge pull request #310 from Zehir/master

Fix for multiple IPV4
This commit is contained in:
Josef Friedrich 2016-09-05 08:09:27 +02:00 committed by GitHub
commit 2241f9b61e

View File

@ -231,7 +231,7 @@ touch /etc/postfix/vmailbox && postmap /etc/postfix/vmailbox
touch /etc/postfix/virtual && postmap /etc/postfix/virtual
# PERMIT_DOCKER Option
container_ip=$(ip addr show eth0 | grep 'inet ' | sed 's/[^0-9\.\/]*//g' | cut -d '/' -f 1)
container_ip=$(ip addr show eth0 | grep 'inet 172\.' | sed 's/[^0-9\.\/]*//g' | cut -d '/' -f 1)
container_network="$(echo $container_ip | cut -d '.' -f1-2).0.0"
case $PERMIT_DOCKER in
"host" )