mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +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:
parent
8d47395e53
commit
cd251fa5d6
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user