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

Merge pull request #451 from YunoHost-Apps/testing

Testing
This commit is contained in:
Josue-T 2024-04-22 21:42:29 +02:00 committed by GitHub
commit 508605319c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 31 additions and 29 deletions

View file

@ -21,7 +21,7 @@ Instant messaging server matrix network.
Yunohost chatroom with matrix : [https://matrix.to/#/#yunohost:matrix.org](https://matrix.to/#/#yunohost:matrix.org)
**Shipped version:** 1.104.0~ynh1
**Shipped version:** 1.105.0~ynh1
## Documentation and resources
- Official app website: <https://matrix.org/>

View file

@ -21,7 +21,7 @@ Instant messaging server matrix network.
Yunohost chatroom with matrix : [https://matrix.to/#/#yunohost:matrix.org](https://matrix.to/#/#yunohost:matrix.org)
**Paketatutako bertsioa:** 1.104.0~ynh1
**Paketatutako bertsioa:** 1.105.0~ynh1
## Dokumentazioa eta baliabideak
- Aplikazioaren webgune ofiziala: <https://matrix.org/>

View file

@ -21,7 +21,7 @@ Instant messaging server matrix network.
Yunohost chatroom with matrix : [https://matrix.to/#/#yunohost:matrix.org](https://matrix.to/#/#yunohost:matrix.org)
**Version incluse:** 1.104.0~ynh1
**Version incluse:** 1.105.0~ynh1
## Documentations et ressources
- Site officiel de lapp: <https://matrix.org/>

View file

@ -21,7 +21,7 @@ Instant messaging server matrix network.
Yunohost chatroom with matrix : [https://matrix.to/#/#yunohost:matrix.org](https://matrix.to/#/#yunohost:matrix.org)
**Versión proporcionada:** 1.104.0~ynh1
**Versión proporcionada:** 1.105.0~ynh1
## Documentación e recursos
- Web oficial da app: <https://matrix.org/>

View file

@ -21,7 +21,7 @@ Instant messaging server matrix network.
Yunohost chatroom with matrix : [https://matrix.to/#/#yunohost:matrix.org](https://matrix.to/#/#yunohost:matrix.org)
**分发版本:** 1.104.0~ynh1
**分发版本:** 1.105.0~ynh1
## 文档与资源
- 官方应用网站: <https://matrix.org/>

View file

@ -10,7 +10,7 @@ charset-normalizer==3.3.2
constantly==23.10.4
cryptography==42.0.5
hyperlink==21.0.0
idna==3.6
idna==3.7
ijson==3.2.3
immutabledict==4.2.0
incremental==22.10.0
@ -21,21 +21,21 @@ ldap3==2.9.1
lxml==5.2.1
MarkupSafe==2.1.5
matrix-common==1.3.0
matrix-synapse==1.104.0
matrix-synapse==1.105.0
matrix-synapse-ldap3==0.3.0
msgpack==1.0.8
ndg-httpsclient==0.5.1
netaddr==1.2.1
packaging==24.0
phonenumbers==8.13.33
phonenumbers==8.13.34
pillow==10.3.0
prometheus_client==0.20.0
psycopg2==2.9.9
pyasn1==0.6.0
pyasn1_modules==0.4.0
pycparser==2.22
pydantic==2.6.4
pydantic_core==2.16.3
pydantic==2.7.0
pydantic_core==2.18.1
pymacaroons==0.13.0
PyNaCl==1.5.0
pyOpenSSL==24.1.0
@ -51,8 +51,8 @@ six==1.16.0
sortedcontainers==2.4.0
treq==23.11.0
Twisted==24.3.0
typing_extensions==4.10.0
typing_extensions==4.11.0
unpaddedbase64==2.1.0
urllib3==2.2.1
webencodings==0.5.1
zope.interface==6.2
zope.interface==6.3

View file

@ -10,7 +10,7 @@ charset-normalizer==3.3.2
constantly==23.10.4
cryptography==42.0.5
hyperlink==21.0.0
idna==3.6
idna==3.7
ijson==3.2.3
immutabledict==4.2.0
incremental==22.10.0
@ -21,21 +21,21 @@ ldap3==2.9.1
lxml==5.2.1
MarkupSafe==2.1.5
matrix-common==1.3.0
matrix-synapse==1.104.0
matrix-synapse==1.105.0
matrix-synapse-ldap3==0.3.0
msgpack==1.0.8
ndg-httpsclient==0.5.1
netaddr==1.2.1
packaging==24.0
phonenumbers==8.13.33
phonenumbers==8.13.34
pillow==10.3.0
prometheus_client==0.20.0
psycopg2==2.9.9
pyasn1==0.6.0
pyasn1_modules==0.4.0
pycparser==2.22
pydantic==2.6.4
pydantic_core==2.16.3
pydantic==2.7.0
pydantic_core==2.18.1
pymacaroons==0.13.0
PyNaCl==1.5.0
pyOpenSSL==24.1.0
@ -52,8 +52,8 @@ sortedcontainers==2.4.0
tomli==2.0.1
treq==23.11.0
Twisted==24.3.0
typing_extensions==4.10.0
typing_extensions==4.11.0
unpaddedbase64==2.1.0
urllib3==2.2.1
webencodings==0.5.1
zope.interface==6.2
zope.interface==6.3

View file

@ -5,7 +5,7 @@ name = "Synapse"
description.en = "Instant messaging server which uses Matrix"
description.fr = "Serveur de messagerie instantané basé sur Matrix"
version = "1.104.0~ynh1"
version = "1.105.0~ynh1"
maintainers = ["Josué Tille"]
@ -63,13 +63,13 @@ ram.runtime = "1G"
[resources]
[resources.sources.synapse_prebuilt_armv7_bookworm]
prefetch = false
armhf.url = "https://github.com/YunoHost-Apps/synapse_python_build/releases/download/v1.104.0/matrix-synapse_1.104.0-bookworm-bin1_armv7l.tar.gz"
armhf.sha256 = "880c3507a424277cd5414363e22dc2018407e572c5f7bb388a6560707ae4231e"
armhf.url = "https://github.com/YunoHost-Apps/synapse_python_build/releases/download/v1.105.0/matrix-synapse_1.105.0-bookworm-bin1_armv7l.tar.gz"
armhf.sha256 = "8d997452056311b97f3a758cf1e1673dc8b9463d9dc1abb696f01a5335344470"
[resources.sources.synapse_prebuilt_armv7_bullseye]
prefetch = false
armhf.url = "https://github.com/YunoHost-Apps/synapse_python_build/releases/download/v1.104.0/matrix-synapse_1.104.0-bullseye-bin1_armv7l.tar.gz"
armhf.sha256 = "8f2f957d25566e5051aa0d5c88bcedacf6ea1615cc7aca84491a7ded84fbae11"
armhf.url = "https://github.com/YunoHost-Apps/synapse_python_build/releases/download/v1.105.0/matrix-synapse_1.105.0-bullseye-bin1_armv7l.tar.gz"
armhf.sha256 = "6721340e6ef15ba7e90715d0e7f0d316f045123a0517b5294cc889b0a47c0185"
[resources.system_user]
allow_email = true

View file

@ -102,6 +102,11 @@ ensure_vars_set() {
ynh_app_setting_set --app="$app" --key=e2e_enabled_by_default --value="$e2e_enabled_by_default"
fi
if [ -z "${turnserver_pwd:-}" ]; then
turnserver_pwd=$(ynh_string_random --length=30)
ynh_app_setting_set --app="$app" --key=turnserver_pwd --value="$turnserver_pwd"
fi
if [ -z "${web_client_location:-}" ]
then
web_client_location="https://matrix.to/"

View file

@ -156,9 +156,6 @@ configure_nginx
#=================================================
ynh_script_progression --message="Configuring Synapse..." --weight=2
# Find password for turnserver and database
turnserver_pwd=$(ynh_string_random --length=30)
ynh_app_setting_set --app=$app --key=turnserver_pwd --value=$turnserver_pwd
ynh_add_jinja_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml"
ynh_add_config --template="log.yaml" --destination="/etc/matrix-$app/log.yaml"

View file

@ -18,8 +18,8 @@ for f in $(ls /etc/matrix-$app/app-service/); do
done
# Set permissions
chown matrix-$app $service_config_file
chown matrix-$app /etc/matrix-$app/app-service/*
chown $app $service_config_file
chown $app /etc/matrix-$app/app-service/*
chmod 600 $service_config_file
chmod 600 /etc/matrix-$app/app-service/*