From c2c2696bff3d7e8608fd86152c7aae0adf314594 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 4 Dec 2021 16:28:38 +0100 Subject: [PATCH] upgrade: export HOME --- scripts/upgrade | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 5d80811..efe9cac 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -117,9 +117,7 @@ ynh_system_user_create --username=$mautrix_bridge_user if [ "$upgrade_type" == "UPGRADE_APP" ]; then ynh_script_progression --message="Upgrading python packages..." --weight=1 - if [ -z $HOME ]; then - HOME=$final_path # HACK see https://github.com/mautrix/telegram/issues/661 - fi + export HOME=$final_path # HACK see https://github.com/mautrix/telegram/issues/661 $final_path/bin/pip3 install --upgrade setuptools wheel # HACK fixes "error: invalid command 'bdist_wheel'" $final_path/bin/pip3 install --upgrade $final_path/src/mautrix-telegram.tar.gz[postgres,speedups,qr_login] #,hq_thumbnails fi