Update docker_dev.sh

This commit is contained in:
Adam Hill 2017-01-09 12:05:40 -06:00 committed by GitHub
parent 8d90235580
commit 15446df061
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@ docker build -f alpine.docker -t diginc/pi-hole:alpine .
docker tag diginc/pi-hole:alpine diginc/pi-hole:latest
docker build -f debian.docker -t diginc/pi-hole:debian .
IP=$(ip route get 8.8.8.8 | awk '{ print $NF; exit }')
IP_LOOKUP="$(ip route get 8.8.8.8 | awk '{ print $NF; exit }')" # May not work for VPN / tun0
IP="${IP:-$IP_LOOKUP}" # use $IP, if set, otherwise IP_LOOKUP
# Alternative ports to not conflict with my real instance
# shellcheck disable=SC2068