mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 07:16:52 -06:00
Fix mod_wsgi version mismatch issue for RHEL platforms.
This commit is contained in:
parent
8f8f8ec79a
commit
bc83955418
@ -24,11 +24,12 @@ _setup_env() {
|
||||
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F "=" '{ print $2 }' | sed 's/"//g' | awk -F "." '{ print $1 }')
|
||||
SYSTEM_PYTHON_PATH='/usr/bin/python3'
|
||||
PYTHON_BINARY=$("${SYSTEM_PYTHON_PATH}" -c "import sys; print('python%d.%.d' % (sys.version_info.major, sys.version_info.minor))")
|
||||
PYTHON_BINARY_WITHOUT_DOTS='python3'
|
||||
if [ "$2" == 'redhat' ] && [ "${OS_VERSION}" == "8" ]; then
|
||||
SYSTEM_PYTHON_PATH='/usr/bin/python3.9'
|
||||
PYTHON_BINARY='python3.9'
|
||||
PYTHON_BINARY_WITHOUT_DOTS='python39'
|
||||
fi
|
||||
PYTHON_BINARY_WITHOUT_DOTS=$(echo ${PYTHON_BINARY} | sed -e 's/\.//g')
|
||||
}
|
||||
|
||||
_cleanup() {
|
||||
|
Loading…
Reference in New Issue
Block a user