From e9f37479691187f4fa1c77ef23a964985e8b56e2 Mon Sep 17 00:00:00 2001 From: Khushboo Vashi Date: Thu, 23 May 2024 14:34:08 +0530 Subject: [PATCH] Fix the issue where pgAdmin fails to start when Ubuntu OS is upgraded to a major version. #7439 --- pkg/linux/build-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/linux/build-functions.sh b/pkg/linux/build-functions.sh index 4f2a42761..0d346ec36 100644 --- a/pkg/linux/build-functions.sh +++ b/pkg/linux/build-functions.sh @@ -23,7 +23,7 @@ _setup_env() { # 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 }') 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 SYSTEM_PYTHON_PATH='/usr/bin/python3.9' PYTHON_BINARY='python3.9'