2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-04 13:02:25 +00:00

Avoid breaking net config with '' DNS server

The node is probably misconfigured, but tolerate it
and carry on so that networking will at least
come up.
This commit is contained in:
Jarrod Johnson 2020-05-29 08:58:33 -04:00
parent 335d06ea4c
commit 2a9d4e8079

View File

@ -82,7 +82,7 @@ fi
nameserversec=0
while read -r entry; do
if [ $nameserversec = 1 ]; then
if [[ $entry == "-"* ]]; then
if [[ $entry == "-"* ]] && [[ $entry != "- ''" ]]; then
echo nameserver=${entry#- } >> /etc/cmdline.d/01-confluent.conf
continue
fi