2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 10:39:23 +00:00

Fall through to ipv6 if v4 is blank

This commit is contained in:
Jarrod Johnson 2022-10-24 16:42:02 -04:00
parent 31bf8f2a11
commit be2959f365

View File

@ -169,7 +169,8 @@ v4cfg=${v4cfg#ipv4_method: }
if [ "$v4cfg" = "static" ] || [ "$v4cfg" = "dhcp" ]; then
mgr=$(grep ^deploy_server: /etc/confluent/confluent.deploycfg)
mgr=${mgr#deploy_server: }
else
fi
if [ -z "$mgr" ]; then
mgr=$(grep ^deploy_server_v6: /etc/confluent/confluent.deploycfg)
mgr=${mgr#deploy_server_v6: }
mgr="[$mgr]"