From 0a9fd8351b8db742b74d662d85a1d0d146f32678 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 9 Dec 2022 11:19:06 -0500 Subject: [PATCH] Correct firstboot on remote media deployment --- .../el8/profiles/default/scripts/firstboot.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh b/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh index e81b8c6e..1762ed01 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh @@ -17,8 +17,14 @@ 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 - confluent_mgr="[$confluent_mgr]" + if [ -z "$confluent_mgr" ]; then + confluent_mgr=$(grep ^deploy_server: /etc/confluent/confluent.deploycfg) + confluent_mgr=${confluent_mgr#deploy_server: } + confluent_pingtarget=$confluent_mgr + else + confluent_pingtarget=$confluent_mgr + confluent_mgr="[$confluent_mgr]" + fi fi confluent_profile=$(grep ^profile: /etc/confluent/confluent.deploycfg|awk '{print $2}') export nodename confluent_mgr confluent_profile