mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-08 13:55:38 +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:
@ -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
|
||||
|
Reference in New Issue
Block a user