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

Move turn server password definition in same place than other definition

This commit is contained in:
Josué Tille 2024-04-17 08:44:41 +02:00
parent ebfcb9f081
commit b7e6a352a1
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
2 changed files with 5 additions and 3 deletions

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"