mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-20 02:18:51 +00:00
Default upstream DNS to Google and remove the mention of the environment variable from the quickstart compose file.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
@@ -62,12 +62,9 @@ ensure_basic_configuration() {
|
||||
fi
|
||||
|
||||
# If getFTLConfigValue "dns.upstreams" returns [], exit the container. We need upstream servers to function!
|
||||
if [[ $(getFTLConfigValue "dns.upstreams") == "[]" ]]; then
|
||||
echo ""
|
||||
echo " [X] No DNS upstream servers are set!"
|
||||
echo " [i] Recommended: Set the upstream DNS servers in the environment variable FTLCONF_dns_upstreams"
|
||||
echo ""
|
||||
exit 1
|
||||
if [[ $(getFTLConfigValue "dns.upstreams") == "[]" ]]; then
|
||||
echo " [i] No DNS upstream set in environment or config file, defaulting to Google DNS"
|
||||
setFTLConfigValue "dns.upstreams" "[\"8.8.8.8\", \"8.8.4.4\"]"
|
||||
fi
|
||||
|
||||
setup_web_password
|
||||
|
||||
Reference in New Issue
Block a user