From 85673b8273f5b27de92ae9bbde942569453fdbdf Mon Sep 17 00:00:00 2001 From: MichaIng Date: Wed, 4 Dec 2019 18:59:25 +0100 Subject: [PATCH] Print name of chosen upstream DNS as well Signed-off-by: MichaIng --- automated install/basic-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index c2f8ced5..59a55001 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1071,7 +1071,9 @@ setDNS() { fi # Display final selection - printf " %b Using upstream DNS: %s %s\\n" "${INFO}" "${PIHOLE_DNS_1}" "${PIHOLE_DNS_2}" + local DNSIP=${PIHOLE_DNS_1} + [[ -z ${PIHOLE_DNS_2} ]] || DNSIP+=", ${PIHOLE_DNS_2}" + printf " %b Using upstream DNS: %s (%s)\\n" "${INFO}" "${DNSchoices}" "${DNSIP}" } # Allow the user to enable/disable logging