mirror of
https://github.com/YunoHost-Apps/cinny_ynh.git
synced 2024-09-03 18:16:13 +02:00
30 lines
958 B
Bash
30 lines
958 B
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# COMMON VARIABLES
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# PERSONAL HELPERS
|
|
#=================================================
|
|
|
|
cinny_install_config_file() {
|
|
# This helper detects if default_home_server is matrix.org to prevent duplicates in the list.
|
|
|
|
# Add a Json element in the config file
|
|
if [[ "$default_home_server" == "matrix.org" ]]; then
|
|
default_home_server_list=""
|
|
else
|
|
default_home_server_list="\"$default_home_server\",\n "
|
|
fi
|
|
|
|
ynh_add_config --template="../conf/config.json" --destination="$install_dir/config.json"
|
|
}
|
|
|
|
#=================================================
|
|
# EXPERIMENTAL HELPERS
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# FUTURE OFFICIAL HELPERS
|
|
#=================================================
|