2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Add support for OL7 and older other EL7 flavors

Older EL7 didn't have platform-python in installer,
change to fallback to old /usr/bin/python if
needed.
This commit is contained in:
Jarrod Johnson 2020-12-10 10:54:30 -05:00
parent 8d47395e53
commit cd251fa5d6
2 changed files with 6 additions and 2 deletions

View File

@ -60,7 +60,11 @@ run_remote_python() {
mkdir -p $(dirname $1)
curl -f -sS $curlargs https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
if [ $? != 0 ]; then echo "'$*'" failed to download; return 1; fi
/usr/libexec/platform-python $*
if [ -x /usr/libexec/platform-python ]; then
/usr/libexec/platform-python $*
else
/usr/bin/python $*
fi
retcode=$?
echo "'$*' exited with code $retcode"
cd - > /dev/null

View File

@ -346,7 +346,7 @@ def _priv_check_oraclelinux(isoinfo):
ver = None
arch = None
for entry in isoinfo[0]:
if 'oraclelinux-release-8' in entry:
if 'oraclelinux-release-' in entry:
ver = entry.split('-')[2]
arch = entry.split('.')[-2]
break