2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Correct formatting of nameserver list in suse

This commit is contained in:
Jarrod Johnson 2021-06-23 12:26:49 -04:00
parent dc8cb1b13f
commit 6862d9e580

View File

@ -85,7 +85,7 @@ nameservers=""
while read -r entry; do
if [ $nameserversec = 1 ]; then
if [[ $entry == "-"* ]]; then
nameservers="$nameservers"${entry#- }";"
nameservers="$nameservers"${entry#- }" "
continue
fi
fi
@ -95,6 +95,7 @@ while read -r entry; do
continue
fi
done < /etc/confluent/confluent.deploycfg
nameserverrs=${nameservers% }
sed -i 's/^NETCONFIG_DNS_STATIC_SERVERS="/NETCONFIG_DNS_STATIC_SERVERS="'$nameservers/ /sysroot/etc/sysconfig/network/config
dnsdomain=$(grep ^dnsdomain: /etc/confluent/confluent.deploycfg)
dnsdomain=${dnsdomain#dnsdomain: }