Skip to content

Commit

Permalink
Fix mod_wsgi version mismatch issue for RHEL platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboovashi committed May 28, 2024
1 parent 8f8f8ec commit bc83955
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/linux/build-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit bc83955

Please sign in to comment.