From 931fa540929ad8eacbdf3a19371f30184b5dd63e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 15 Jun 2022 16:10:57 -0400 Subject: [PATCH] Fix EL7 deployment compatibility --- confluent_osdeploy/el7/profiles/default/scripts/pre.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/el7/profiles/default/scripts/pre.sh b/confluent_osdeploy/el7/profiles/default/scripts/pre.sh index 1e862b75..eeb615d3 100644 --- a/confluent_osdeploy/el7/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el7/profiles/default/scripts/pre.sh @@ -79,5 +79,9 @@ if [ -e /tmp/installdisk -a ! -e /tmp/partitioning ]; then echo ignoredisk --only-use $(cat /tmp/installdisk) >> /tmp/partitioning echo autopart --nohome $LUKSPARTY >> /tmp/partitioning fi -python /etc/confluent/apiclient /confluent-public/os/$confluent_profile/kickstart.custom -o /tmp/kickstart.custom +if [ -f /opt/confluent/bin/apiclient ]; then + python /opt/confluent/binapiclient /confluent-public/os/$confluent_profile/kickstart.custom -o /tmp/kickstart.custom +else: + python /etc/confluent/apiclient /confluent-public/os/$confluent_profile/kickstart.custom -o /tmp/kickstart.custom +fi kill $logshowpid