mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Rework setting web_client_location
This commit is contained in:
parent
3880e7046e
commit
d17f526b20
1 changed files with 11 additions and 11 deletions
|
@ -66,28 +66,28 @@ if [ -z "${report_stats:-}" ]; then
|
|||
ynh_app_setting_set --app=$app --key=report_stats --value=$report_stats
|
||||
fi
|
||||
|
||||
# Get app name of first Element Instance
|
||||
element_ynh_url="https://matrix.to/"
|
||||
web_client_location=$element_ynh_url
|
||||
client_base_url=$element_ynh_url
|
||||
invite_client_location=$element_ynh_url
|
||||
|
||||
if [ -z "${web_client_location:-}" ]
|
||||
then
|
||||
web_client_location="https://matrix.to/"
|
||||
|
||||
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"
|
||||
web_client_location="https://""$element_domain""$element_path"
|
||||
fi
|
||||
web_client_location=$element_ynh_url
|
||||
client_base_url=$element_ynh_url
|
||||
invite_client_location=$element_ynh_url
|
||||
ynh_app_setting_set --app=$app --key=web_client_location --value=$web_client_location
|
||||
fi
|
||||
if [ -z "${client_base_url:-}" ]
|
||||
then
|
||||
client_base_url=$web_client_location
|
||||
ynh_app_setting_set --app=$app --key=client_base_url --value=$client_base_url
|
||||
fi
|
||||
if [ -z "${invite_client_location:-}" ]
|
||||
then
|
||||
invite_client_location=$web_client_location
|
||||
ynh_app_setting_set --app=$app --key=invite_client_location --value=$invite_client_location
|
||||
fi
|
||||
|
||||
if [ -z "${allow_public_rooms_without_auth:-}" ]
|
||||
then
|
||||
allow_public_rooms_without_auth=${allow_public_rooms:-false}
|
||||
|
|
Loading…
Reference in a new issue