diff --git a/scripts/_common.sh b/scripts/_common.sh index 1a7af73..ff1991e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ app=$YNH_APP_INSTANCE_NAME final_path=/opt/yunohost/$app pgadmin_user="pgadmin" -python_version="3.5" +python_version="$(python3 -V | cut -d' ' -f2 | cut -d. -f1-2)" dependances="python3-pip build-essential python3-dev python3-venv postgresql uwsgi uwsgi-plugin-python3 expect libpq-dev" if [[ -e "../settings/manifest.json" ]] || [[ -e "../manifest.json" ]]; then