1
0
mirror of https://github.com/pi-hole/docker-pi-hole.git synced 2024-06-26 00:59:07 +02:00

Merge pull request #159 from diginc/dev

Release updated dev version to master
This commit is contained in:
Adam Hill 2017-09-01 20:14:27 -05:00 committed by GitHub
commit e037ca86af
3 changed files with 14 additions and 2 deletions

View File

@ -118,6 +118,17 @@ setup_dnsmasq_hostnames() {
fi
}
setup_lighttpd_bind() {
if [[ "$IMAGE" == 'debian' ]] ; then
# if using '--net=host' only bind lighttpd on $ServerIP
if grep -q "docker" /proc/net/dev ; then #docker (docker0 by default) should only be present on the host system
if ! grep -q "server.bind" /etc/lighttpd/lighttpd.conf ; then # if the declaration is already there, don't add it again
sed -i -E "s/server\.port\s+\=\s+80/server.bind\t\t = \"${ServerIP}\"\nserver.port\t\t = 80/" /etc/lighttpd/lighttpd.conf
fi
fi
fi
}
setup_php_env() {
case $IMAGE in
"debian") setup_php_env_debian ;;

View File

@ -1,8 +1,8 @@
#!/bin/bash -ex
mkdir -p /etc/pihole/
export CORE_TAG='v3.1'
export CORE_TAG='v3.1.4'
export WEB_TAG='v3.1'
export FTL_TAG='v2.9.4'
export FTL_TAG='v2.10'
# Make pihole scripts fail searching for `systemctl`,
# which fails pretty miserably in docker compared to `service`

View File

@ -25,6 +25,7 @@ setup_dnsmasq
setup_php_env
setup_dnsmasq_hostnames "$ServerIP" "$ServerIPv6" "$HOSTNAME"
setup_ipv4_ipv6
setup_lighttpd_bind "$ServerIP" "$IMAGE"
test_configs
test_framework_stubbing
echo "::: Docker start setup complete - beginning s6 services"