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

python optional requirements

This commit is contained in:
Gredin 67 2021-02-12 14:12:48 +01:00
parent 135fe7ad53
commit ead6216a5f

View file

@ -212,8 +212,9 @@ ynh_replace_string --match_string=__LOG_LEVEL__ --replace_string="error" --targe
mkdir -p /var/log/$app
# Configure Mautrix-Bridge
python3 -m venv $final_path
#$final_path/bin/pip3 install --upgrade setuptools wheel
$final_path/bin/pip3 install $final_path/src/mautrix-signal.tar.gz[all]
$final_path/bin/pip3 install --upgrade setuptools wheel
$final_path/bin/pip3 install -r $final_path/optional-requirements.txt
$final_path/bin/pip3 install $final_path/src/mautrix-signal.tar.gz[all]
$final_path/bin/python3 -m mautrix_signal -g -c $mautrix_config_path -r $app_service_registration_path/$app.yaml
/opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh \
@ -263,7 +264,7 @@ chown $mautrix_bridge_user:root -R /var/log/$app
#=================================================
#yunohost service add $app --log "/var/log/$app/log.log"
# if using yunohost version 3.2 or more in the 'manifest.json', a description can be added
yunohost service add $app --description "$app daemon for bridging FB and Matrix messages" --log "/var/log/$app/$app.log"
yunohost service add $app --description "$app daemon for bridging Signal and Matrix messages" --log "/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE