From eb3d09b6622617d4bf13dd61978da62dbd14d574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Mon, 6 Mar 2023 08:34:48 +0100 Subject: [PATCH] Cleanup install/upgrade source --- scripts/_common.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 788440e..83fd3d9 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -53,23 +53,13 @@ install_sources() { pip3 install --upgrade setuptools wheel pip fi - temp_requirement=$(mktemp) - cp $YNH_APP_BASEDIR/conf/requirement_$(lsb_release --codename --short).txt $temp_requirement - chown $synapse_user:root $temp_requirement - - chown $synapse_user:root -R $final_path pip3 install --upgrade cffi ndg-httpsclient psycopg2 lxml jinja2 - sudo -u $synapse_user env PATH=$PATH pip3 install --upgrade -r $temp_requirement - ynh_secure_remove $temp_requirement + pip3 install --upgrade -r $YNH_APP_BASEDIR/conf/requirement_$(lsb_release --codename --short).txt # This function was defined when we called "source $final_path/bin/activate". With this function we undo what "$final_path/bin/activate" does set +$u_arg; deactivate set -$u_arg; - - # Remove Rust to reduce backup size - ynh_secure_remove --file=$final_path/.rustup - ynh_secure_remove --file=$final_path/.cargo fi }