always export home

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
benneti 2021-10-03 18:59:52 +02:00 committed by GitHub
parent e5d1e26d99
commit 7e6b841b49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,9 +189,7 @@ write_bridge_config
mkdir -p /var/log/$app mkdir -p /var/log/$app
# Configure Mautrix-Bridge # Configure Mautrix-Bridge
python3 -m venv $final_path python3 -m venv $final_path
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] # metrics,hq_thumbnails,e2be $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 # -r optional-requirements.txt