1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautrix_signal_ynh.git synced 2024-09-03 19:46:07 +02:00

correct python env

This commit is contained in:
Gredin 67 2021-01-26 22:17:45 +01:00
parent fe93818e04
commit f5b9c456e4
2 changed files with 4 additions and 5 deletions

View file

@ -7,7 +7,7 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__/
ExecStart=__FINALPATH__/mautrix_facebook >> /var/log/__APP__/__APP__.log 2>&1
ExecStart=__FINALPATH__/bin/python3 -m mautrix_facebook >> /var/log/__APP__/__APP__.log 2>&1
[Install]
WantedBy=multi-user.target

View file

@ -207,10 +207,9 @@ ynh_replace_string --match_string=__LOG_LEVEL__ --replace_string="error" --targe
# Configure Mautrix-Facebook
python3 -m venv $final_path
source venv/bin/activate
venv/bin/pip3 install --upgrade setuptools
venv/bin/pip3 install --upgrade $final_path/src/mautrix-facebook.tar.gz
venv/bin/python3 -m mautrix-facebook -g -c $mautrix_config_path -r $app_service_registration_path/$app.yaml
$final_path/bin/pip3 install --upgrade setuptools
$final_path/bin/pip3 install --upgrade $final_path/src/mautrix-facebook.tar.gz
$final_path/bin/python3 -m mautrix-facebook -g -c $mautrix_config_path -r $app_service_registration_path/$app.yaml
/opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh \
|| ynh_die "Synapse can't restart with the appservice configuration"