From f6b36e01906700bfee9e261b39d3e950a023630e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 9 Feb 2023 19:44:30 +0100 Subject: [PATCH] Cleanup install and use requirement from package build --- scripts/_common.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index ef18cc0..2599ab5 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -59,9 +59,12 @@ install_source() { source $final_path/bin/activate set -$u_arg; pip3 install --upgrade pip - pip3 install --upgrade 'Werkzeug<1.0' - pip3 install --upgrade 'markupsafe==2.0.1' - pip3 install --upgrade pgadmin4==$app_sub_version + + temp_requirement=$(mktemp) + cp $YNH_APP_BASEDIR/conf/requirement_$(lsb_release --codename --short).txt $temp_requirement + chown $pgadmin_user:root $temp_requirement + + sudo -u $pgadmin_user env PATH=$PATH pip3 install --upgrade -r $temp_requirement set +$u_arg; deactivate set -$u_arg;