1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pgadmin_ynh.git synced 2024-09-03 19:56:38 +02:00

Cleanup install and use requirement from package build

This commit is contained in:
Josué Tille 2023-02-09 19:44:30 +01:00
parent ca08813776
commit f6b36e0190
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -59,9 +59,12 @@ install_source() {
source $final_path/bin/activate source $final_path/bin/activate
set -$u_arg; set -$u_arg;
pip3 install --upgrade pip pip3 install --upgrade pip
pip3 install --upgrade 'Werkzeug<1.0'
pip3 install --upgrade 'markupsafe==2.0.1' temp_requirement=$(mktemp)
pip3 install --upgrade pgadmin4==$app_sub_version 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; set +$u_arg;
deactivate deactivate
set -$u_arg; set -$u_arg;