From cf6975ded39a6806e965d046f0595fbcbbe9dc44 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 3 May 2021 13:11:52 -0400 Subject: [PATCH] Fix python2/3 handling in el8 pre.sh --- confluent_osdeploy/el8/profiles/default/scripts/pre.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index 5695e550..ad5cc63a 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -78,5 +78,12 @@ 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 [ -e /usr/libexec/platform-python ]; then + python=/usr/libexec/platform-python +elif [ -e /usr/bin/python3 ]; then + python=/usr/byn/python3 +else + python=/usr/bin/python +fi +$python /etc/confluent/apiclient /confluent-public/os/$confluent_profile/kickstart.custom -o /tmp/kickstart.custom kill $logshowpid