2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-29 13:00:03 +00:00

Null domain becomes blank for ubuntu

This commit is contained in:
Jarrod Johnson 2020-05-20 09:40:16 -04:00
parent b0be352134
commit c4379e3fd2

View File

@ -33,6 +33,7 @@ elif [ "$ipv4m" = "static" ]; then
v4nm=${v4nm#ipv4_netmask: }
dnsdomain=$(grep ^dnsdomain: $deploycfg)
dnsdomain=${dnsdomain#dnsdomain: }
if [ "$dnsdomain" = "null" ]; then dnsdomain=""; fi
dns=$(grep -A1 ^nameservers: $deploycfg|head -n 2|tail -n 1|sed -e 's/^- //'|sed -e "s/''//")
{
echo "DEVICE='$DEVICE'"