diff --git a/confluent_osdeploy/el8/profiles/default/kickstart b/confluent_osdeploy/el8/profiles/default/kickstart index 9352ed88..b7052bcd 100644 --- a/confluent_osdeploy/el8/profiles/default/kickstart +++ b/confluent_osdeploy/el8/profiles/default/kickstart @@ -59,7 +59,8 @@ v4cfg=${v4cfg#ipv4_method: } if [ "$v4cfg" = "static" ] || [ "$v4cfg" = "dhcp" ]; then confluent_mgr=$(grep ^deploy_server: /etc/confluent/confluent.deploycfg) confluent_mgr=${confluent_mgr#deploy_server: } -else +fi +if [ -z "$confluent_mgr" ]; then confluent_mgr=$(grep ^deploy_server_v6: /etc/confluent/confluent.deploycfg) confluent_mgr=${confluent_mgr#deploy_server_v6: } confluent_mgr="[$confluent_mgr]" @@ -77,7 +78,8 @@ v4cfg=${v4cfg#ipv4_method: } if [ "$v4cfg" = "static" ] || [ "$v4cfg" = "dhcp" ]; then confluent_mgr=$(grep ^deploy_server: /etc/confluent/confluent.deploycfg) confluent_mgr=${confluent_mgr#deploy_server: } -else +fi +if [ -z "$confluent_mgr" ]; then confluent_mgr=$(grep ^deploy_server_v6: /etc/confluent/confluent.deploycfg) confluent_mgr=${confluent_mgr#deploy_server_v6: } confluent_mgr="[$confluent_mgr]" @@ -104,7 +106,8 @@ v4cfg=${v4cfg#ipv4_method: } if [ "$v4cfg" = "static" ] || [ "$v4cfg" = "dhcp" ]; then confluent_mgr=$(grep ^deploy_server: /etc/confluent/confluent.deploycfg) confluent_mgr=${confluent_mgr#deploy_server: } -else +fi +if [ -z "$confluent_mgr" ]; then confluent_mgr=$(grep ^deploy_server_v6: /etc/confluent/confluent.deploycfg) confluent_mgr=${confluent_mgr#deploy_server_v6: } confluent_mgr="[$confluent_mgr]"