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:
parent
ebfcb9f081
commit
b7e6a352a1
2 changed files with 5 additions and 3 deletions
|
@ -102,6 +102,11 @@ ensure_vars_set() {
|
||||||
ynh_app_setting_set --app="$app" --key=e2e_enabled_by_default --value="$e2e_enabled_by_default"
|
ynh_app_setting_set --app="$app" --key=e2e_enabled_by_default --value="$e2e_enabled_by_default"
|
||||||
fi
|
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:-}" ]
|
if [ -z "${web_client_location:-}" ]
|
||||||
then
|
then
|
||||||
web_client_location="https://matrix.to/"
|
web_client_location="https://matrix.to/"
|
||||||
|
|
|
@ -156,9 +156,6 @@ configure_nginx
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring Synapse..." --weight=2
|
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_jinja_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml"
|
||||||
ynh_add_config --template="log.yaml" --destination="/etc/matrix-$app/log.yaml"
|
ynh_add_config --template="log.yaml" --destination="/etc/matrix-$app/log.yaml"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue