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

Use the pip source for synapse

This commit is contained in:
Josué Tille 2019-02-08 14:53:18 +01:00
parent d6332fb09b
commit 0d9204ec95
No known key found for this signature in database
GPG key ID: D5E068C6DFA8681D
4 changed files with 3 additions and 13 deletions

View file

@ -1,5 +0,0 @@
SOURCE_URL=https://github.com/matrix-org/synapse/archive/v0.99.0.tar.gz
SOURCE_SUM=63f6203757b48be38265c08b831a0640319b0b70bf1d06f7f95a65499ca00184
SOURCE_FORMAT=tar.gz
SOURCE_FILENAME=synapse_source.tar.gz
SOURCE_EXTRACT=false

View file

@ -163,9 +163,7 @@ else
pip3 install --upgrade pip pip3 install --upgrade pip
pip3 install --upgrade setuptools wheel pip3 install --upgrade setuptools wheel
pip3 install --upgrade cffi ndg-httpsclient psycopg2 lxml pip3 install --upgrade cffi ndg-httpsclient psycopg2 lxml
pip3 install --upgrade matrix-synapse==$upstream_version matrix-synapse-ldap3
ynh_setup_source "/tmp" "python_source"
pip3 install --upgrade "/tmp/synapse_source.tar.gz"
# This function was defined when we called "source $final_path/bin/activate". With this function we undo what "$final_path/bin/activate" does # This function was defined when we called "source $final_path/bin/activate". With this function we undo what "$final_path/bin/activate" does
deactivate deactivate

View file

@ -192,7 +192,7 @@ chown $synapse_user:root -R /var/lib/matrix-$app
chown $synapse_user:root -R /var/log/matrix-$app chown $synapse_user:root -R /var/log/matrix-$app
chown $synapse_user:root -R /etc/matrix-$app chown $synapse_user:root -R /etc/matrix-$app
chmod u=rwX,g=rX,o= -R /etc/matrix-$app chmod u=rwX,g=rX,o= -R /etc/matrix-$app
chmod 600 /etc/matrix-$app/{$domain.signing.key,$domain.tls.crt,$domain.tls.dh,$domain.tls.key} chmod 600 /etc/matrix-$app/$domain.signing.key
setfacl -R -m user:turnserver:rX /etc/matrix-$app setfacl -R -m user:turnserver:rX /etc/matrix-$app
setfacl -R -m user:turnserver:rwX /var/log/matrix-$app setfacl -R -m user:turnserver:rwX /var/log/matrix-$app

View file

@ -109,10 +109,7 @@ else
source $final_path/bin/activate source $final_path/bin/activate
pip3 install --upgrade setuptools wheel pip3 install --upgrade setuptools wheel
pip3 install --upgrade cffi ndg-httpsclient psycopg2 lxml pip3 install --upgrade cffi ndg-httpsclient psycopg2 lxml
pip3 install --upgrade matrix-synapse==$upstream_version matrix-synapse-ldap3
# Download and check the checksum for the synapse source
ynh_setup_source "/tmp" "python_source"
pip3 install --upgrade "/tmp/synapse_source.tar.gz"
# This function was defined when we called "source $final_path/bin/activate". With this function we undo what "$final_path/bin/activate" does # This function was defined when we called "source $final_path/bin/activate". With this function we undo what "$final_path/bin/activate" does
deactivate deactivate