mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 07:16:52 -06:00
Fix the issue where pgAdmin fails to start when Ubuntu OS is upgraded to a major version. #7439
This commit is contained in:
parent
5c30695d66
commit
e9f3747969
@ -23,7 +23,7 @@ _setup_env() {
|
|||||||
# new Python versions installed parallel to the old ones.
|
# new Python versions installed parallel to the old ones.
|
||||||
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F "=" '{ print $2 }' | sed 's/"//g' | awk -F "." '{ print $1 }')
|
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'
|
SYSTEM_PYTHON_PATH='/usr/bin/python3'
|
||||||
PYTHON_BINARY='python3'
|
PYTHON_BINARY=$("${SYSTEM_PYTHON_PATH}" -c "import sys; print('python%d.%.d' % (sys.version_info.major, sys.version_info.minor))")
|
||||||
if [ "$2" == 'redhat' ] && [ "${OS_VERSION}" == "8" ]; then
|
if [ "$2" == 'redhat' ] && [ "${OS_VERSION}" == "8" ]; then
|
||||||
SYSTEM_PYTHON_PATH='/usr/bin/python3.9'
|
SYSTEM_PYTHON_PATH='/usr/bin/python3.9'
|
||||||
PYTHON_BINARY='python3.9'
|
PYTHON_BINARY='python3.9'
|
||||||
|
Loading…
Reference in New Issue
Block a user