upgrade: export HOME

This commit is contained in:
Alexandre Aubin 2021-12-04 16:28:38 +01:00 committed by GitHub
parent a3146ea59d
commit c2c2696bff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,9 +117,7 @@ ynh_system_user_create --username=$mautrix_bridge_user
if [ "$upgrade_type" == "UPGRADE_APP" ]; then if [ "$upgrade_type" == "UPGRADE_APP" ]; then
ynh_script_progression --message="Upgrading python packages..." --weight=1 ynh_script_progression --message="Upgrading python packages..." --weight=1
if [ -z $HOME ]; then export HOME=$final_path # HACK see https://github.com/mautrix/telegram/issues/661
HOME=$final_path # HACK see https://github.com/mautrix/telegram/issues/661
fi
$final_path/bin/pip3 install --upgrade setuptools wheel # HACK fixes "error: invalid command 'bdist_wheel'" $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 $final_path/bin/pip3 install --upgrade $final_path/src/mautrix-telegram.tar.gz[postgres,speedups,qr_login] #,hq_thumbnails
fi fi