1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/element_ynh.git synced 2024-09-03 18:36:08 +02:00
This commit is contained in:
Éric Gaspar 2022-06-14 16:01:02 +02:00
parent 6fa1ce04df
commit cc124356be
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 3 additions and 18 deletions

View file

@ -11,11 +11,4 @@ name = "Element configuration"
type = "domain"
default = "https://matrix-client.matrix.org"
pattern.regexp = '^https://'
bind = "base_url:__FINALPATH__/config.json"
[main.config.welcome_background_url]
ask = "Welcome background URL"
type = "file"
accept = ".png, .jpg"
help = "When a string, the URL for the full-page image background of the login, registration, and welcome pages. This property can additionally be an array to have the app choose an image at random from the selections."
bind = "welcome_background_url:__FINALPATH__/config.json"
bind = "default_server_name:__FINALPATH__/config.json"

View file

@ -46,8 +46,8 @@
"en": "Choose a default home server",
"fr": "Choisissez un serveur par défault"
},
"example": "https://my-own-homeserver.tld",
"default": "https://matrix-client.matrix.org"
"example": "my-own-homeserver.tld",
"default": "matrix.org"
},
{
"name": "is_public",

View file

@ -25,7 +25,6 @@ domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC
default_home_server=$YNH_APP_ARG_DEFAULT_HOME_SERVER
welcome_background_url=$""
app=$YNH_APP_INSTANCE_NAME

View file

@ -20,7 +20,6 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
default_home_server=$(ynh_app_setting_get --app=$app --key=default_home_server)
welcome_background_url=$(ynh_app_setting_get --app=$app --key=welcome_background_url)
#=================================================
# CHECK VERSION
@ -53,12 +52,6 @@ if [ -z "$default_home_server" ]; then
ynh_app_setting_set --app=$app --key=default_home_server --value=$default_home_server
fi
# If welcome_background_url doesn't exist, create it
if [ -z "$welcome_background_url" ]; then
welcome_background_url="https://matrix-client.matrix.org"
ynh_app_setting_set --app=$app --key=welcome_background_url --value=$welcome_background_url
fi
# Cleaning legacy permissions
if ynh_legacy_permissions_exists; then
ynh_legacy_permissions_delete_all