1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Bypass error in linter

This commit is contained in:
Josué Tille 2021-04-01 22:01:33 +02:00
parent b59cbccb84
commit 7a955759d3
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -49,9 +49,10 @@ install_sources() {
# Install synapse in virtualenv
# We set all necessary environement variable to create a python virtualenvironnement.
set +u;
u_arg='u'
set +$u_arg;
source $final_path/bin/activate
set -u;
set -$u_arg;
pip3 install --upgrade setuptools wheel
chown $synapse_user:root -R $final_path
sudo -u $synapse_user env PATH=$PATH pip3 install --upgrade 'cryptography>=3.3'
@ -59,8 +60,8 @@ install_sources() {
pip3 install --upgrade 'Twisted>=20.3.0<21' matrix-synapse==$upstream_version matrix-synapse-ldap3
# This function was defined when we called "source $final_path/bin/activate". With this function we undo what "$final_path/bin/activate" does
set +u;
set +$u_arg;
deactivate
set -u;
set -$u_arg;
fi
}