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

Update install

This commit is contained in:
Gredin67 2023-01-10 02:05:30 +01:00 committed by GitHub
parent 5dbf9f89dd
commit 45f272140f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,13 +91,15 @@ ynh_app_setting_set --app=$app --key=synapse_user_app_pwd --value=$synapse_user_
## SET STANDARD SETTINGS FROM DEFAULT CONFIG
#=================================================
element_ynh_url="https://matrix.to/"
# Get app name of first Element Instance (can be changed later in Config Panel)
element_instance="element"
if yunohost --output-as plain app list | grep -q "^$element_instance$"; then
element_domain=$(ynh_app_setting_get --app $element_instance --key domain)
element_path=$(ynh_app_setting_get --app $element_instance --key path)
element_ynh_url="https://"+element_domain+element_path
if [ -z "$element_domain" ]; then
element_ynh_url="https://matrix.to/"
#if [ -z "$element_domain" ]; then
# element_ynh_url="https://matrix.to/"
fi
allow_public_rooms_without_auth="false"