mirror of
https://github.com/YunoHost-Apps/mautrix_telegram_ynh.git
synced 2024-09-03 19:45:55 +02:00
temporary fix to install from webinterface
when home is not set pip cannot install the package, therefore set HOME to a well defined path
This commit is contained in:
parent
7f38927683
commit
17b7baf47a
2 changed files with 10 additions and 5 deletions
|
@ -189,6 +189,9 @@ write_bridge_config
|
|||
mkdir -p /var/log/$app
|
||||
# Configure Mautrix-Bridge
|
||||
python3 -m venv $final_path
|
||||
if [ -z $HOME ]; then
|
||||
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 $final_path/src/mautrix-telegram.tar.gz[postgres,speedups,qr_login] # metrics,hq_thumbnails,e2be
|
||||
# -r optional-requirements.txt
|
||||
|
|
|
@ -122,9 +122,11 @@ 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
|
||||
if [ -z $HOME ]; then
|
||||
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 $final_path/src/mautrix-telegram.tar.gz[postgres,speedups,qr_login] #,hq_thumbnails
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue