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:
parent
335d06ea4c
commit
2a9d4e8079
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user