mirror of
https://github.com/YunoHost-Apps/element_ynh.git
synced 2024-09-03 18:36:08 +02:00
Fix
This commit is contained in:
parent
29d2dbbb79
commit
eae980fb29
2 changed files with 15 additions and 0 deletions
|
@ -6,7 +6,17 @@ name = "Element configuration"
|
|||
[main.config]
|
||||
name = "Configuration Options"
|
||||
|
||||
[main.config.default_home_server]
|
||||
ask = "Choose a Matrix server"
|
||||
type = "domain"
|
||||
default = "matrix-client.matrix.org"
|
||||
bind = "base_url:__FINALPATH__/config.json"
|
||||
|
||||
|
||||
[main.config.jitsi_server]
|
||||
ask = "Choose a Jitsi server"
|
||||
type = "domain"
|
||||
default = "meet.element.io"
|
||||
bind = "preferredDomain:__FINALPATH__/config.json"
|
||||
|
||||
|
||||
|
|
|
@ -47,6 +47,11 @@ ynh_abort_if_errors
|
|||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
if [ -z "$default_home_server" ]; then
|
||||
default_home_server="matrix-client.matrix.org"
|
||||
ynh_app_setting_set --app=$app --key=default_home_server --value=$default_home_server
|
||||
fi
|
||||
|
||||
if [ -z "$jitsi_server" ]; then
|
||||
jitsi_server="meet.element.io"
|
||||
ynh_app_setting_set --app=$app --key=jitsi_server --value=$jitsi_server
|
||||
|
|
Loading…
Add table
Reference in a new issue