summaryrefslogtreecommitdiff
path: root/setup-dns.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-11-16 11:09:14 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2021-11-16 11:10:55 +0100
commit25945976fbc11d155ff72b472d03d3c8556a5b09 (patch)
tree67181a777a39a05ce09f2d6533ad8cfb60cedaaf /setup-dns.in
parent37c2bed3009c75782f482df818e2fdc335591a26 (diff)
downloadalpine-conf-25945976fbc11d155ff72b472d03d3c8556a5b09.zip
setup-dns: accept comma separate list of dns servers
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10488
Diffstat (limited to 'setup-dns.in')
-rw-r--r--setup-dns.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-dns.in b/setup-dns.in
index 9bd307e..18e3962 100644
--- a/setup-dns.in
+++ b/setup-dns.in
@@ -46,7 +46,7 @@ if [ -n "$NAMESERVERS" ] || [ $# -gt 0 ];then
dns="$NAMESERVERS"
else
ask "DNS nameserver(s)?" "${dns% }"
- dns="$resp"
+ dns="$(echo $resp | tr ',' ' ')"
fi
if [ "$domain" != "" ]; then