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

Remove configure synapse function as it's not more needed

This commit is contained in:
Josué Tille 2024-04-05 01:02:47 +02:00
parent 6691f884cd
commit 5cfb69ce78
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
5 changed files with 11 additions and 16 deletions

View file

@ -1,5 +1,6 @@
python_version="$(python3 -V | cut -d' ' -f2 | cut -d. -f1-2)"
code_dir="/opt/yunohost/matrix-$app"
readonly python_version="$(python3 -V | cut -d' ' -f2 | cut -d. -f1-2)"
readonly code_dir="/opt/yunohost/matrix-$app"
readonly domain_whitelist_client="$(yunohost --output-as json domain list | jq -r '.domains | .[]')"
install_sources() {
# Install/upgrade synapse in virtualenv
@ -54,13 +55,6 @@ install_sources() {
fi
}
configure_synapse() {
local domain_whitelist_client=$(yunohost --output-as json domain list | jq -r '.domains | .[]')
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"
}
configure_coturn() {
# Get public IP and set as external IP for coturn
# note : '|| true' is used to ignore the errors if we can't get the public ipv4 or ipv6

View file

@ -28,8 +28,8 @@ configure_nginx
#=================================================
ynh_script_progression --message="Updating Synapse config..." --weight=2
configure_synapse
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"
#=================================================
# SECURE FILES AND DIRECTORIES

View file

@ -26,7 +26,8 @@ ynh_app_config_validate() {
ynh_app_config_apply() {
_ynh_app_config_apply
configure_nginx
configure_synapse
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"
set_permissions
}

View file

@ -216,8 +216,8 @@ 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
configure_synapse
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"
#=================================================
# SET COTURN CONFIG

View file

@ -393,8 +393,8 @@ fi
# UPDATE SYNAPSE CONFIG
#=================================================
ynh_script_progression --message="Updating synapse config..." --weight=2
configure_synapse
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"
#=================================================
# CREATE SMALL CAS SERVER