From 25945976fbc11d155ff72b472d03d3c8556a5b09 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 16 Nov 2021 11:09:14 +0100 Subject: setup-dns: accept comma separate list of dns servers fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10488 --- setup-dns.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup-dns.in') 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 -- cgit v1.2.3