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:
parent
514f164c58
commit
29d3a35312
2 changed files with 22 additions and 0 deletions
12
config_panel.toml
Normal file
12
config_panel.toml
Normal 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"
|
|
@ -42,6 +42,16 @@ ynh_clean_setup () {
|
||||||
# Exit if an error occurs during the execution of the script
|
# Exit if an error occurs during the execution of the script
|
||||||
ynh_abort_if_errors
|
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
|
# CREATE DEDICATED USER
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue