From 5794cd5d12dc5fa90d0a0fff6ad6cada57af0aac Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 25 Oct 2022 08:21:42 -0400 Subject: [PATCH] Modify firstboot to fall through to ipv6 if ipv4 failed --- confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh b/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh index 1903f448..7f97d1c7 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh @@ -13,7 +13,8 @@ if [ "$v4cfg" = "static" ] || [ "$v4cfg" = "dhcp" ]; then confluent_mgr=$(grep ^deploy_server: /etc/confluent/confluent.deploycfg) confluent_mgr=${confluent_mgr#deploy_server: } confluent_pingtarget=$confluent_mgr -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_pingtarget=$confluent_mgr