From fe93818e04034d6eca1dcda7cde7ed1a4cda88a1 Mon Sep 17 00:00:00 2001 From: Gredin 67 Date: Tue, 26 Jan 2021 21:09:23 +0100 Subject: [PATCH] correct python env --- scripts/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 4ebf8a8..cda866f 100755 --- a/scripts/install +++ b/scripts/install @@ -207,9 +207,10 @@ ynh_replace_string --match_string=__LOG_LEVEL__ --replace_string="error" --targe # Configure Mautrix-Facebook python3 -m venv $final_path -pip3 install --upgrade setuptools -pip3 install --upgrade $final_path/src/mautrix-facebook.tar.gz -python3 -m mautrix-facebook -g -c $mautrix_config_path -r $app_service_registration_path/$app.yaml +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 /opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh \ || ynh_die "Synapse can't restart with the appservice configuration"