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:
parent
b59cbccb84
commit
7a955759d3
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue