add some more details to ouput to debut travis failure

Signed-off-by: Adam Hill <adam@diginc.us>
This commit is contained in:
Adam Hill
2019-02-13 23:14:25 -06:00
parent f9a21d2ff9
commit ca4fe84df2
2 changed files with 14 additions and 11 deletions

View File

@@ -120,11 +120,13 @@ setup_dnsmasq_dns() {
if [ ! -f /.piholeFirstBoot ] ; then
local setupDNS1="$(grep 'PIHOLE_DNS_1' ${setupVars})"
local setupDNS2="$(grep 'PIHOLE_DNS_2' ${setupVars})"
setupDNS1="${setupDNS1/PIHOLE_DNS_1=/}"
setupDNS2="${setupDNS2/PIHOLE_DNS_2=/}"
if [[ -n "$DNS1" && -n "$setupDNS1" ]] || \
[[ -n "$DNS2" && -n "$setupDNS2" ]] ; then
echo "Docker DNS variables not used"
fi
echo "Existing DNS servers used"
echo "Existing DNS servers used (${setupDNS1:-unset} & ${setupDNS2:-unset})"
return
fi