1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/element_ynh.git synced 2024-09-03 18:36:08 +02:00

Add config panel

This commit is contained in:
ericgaspar 2022-03-20 22:04:25 +01:00
parent 514f164c58
commit 29d3a35312
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 22 additions and 0 deletions

12
config_panel.toml Normal file
View file

@ -0,0 +1,12 @@
version = "1.0"
[main]
name = "Element configuration"
[main.config]
name = "Configuration Options"
[main.config.jitsi_server]
ask = "Choose a Jitsi server"
type = "domain"
bind = "preferredDomain:__FINALPATH__/config.json"

View file

@ -42,6 +42,16 @@ ynh_clean_setup () {
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if [ -z "$jitsi_server" ]; then
jitsi_server="meet.element.io"
ynh_app_setting_set --app=$app --key=jitsi_server --value=$jitsi_server
fi
#=================================================
# CREATE DEDICATED USER
#=================================================