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
6fa1ce04df
commit
cc124356be
4 changed files with 3 additions and 18 deletions
|
@ -11,11 +11,4 @@ name = "Element configuration"
|
||||||
type = "domain"
|
type = "domain"
|
||||||
default = "https://matrix-client.matrix.org"
|
default = "https://matrix-client.matrix.org"
|
||||||
pattern.regexp = '^https://'
|
pattern.regexp = '^https://'
|
||||||
bind = "base_url:__FINALPATH__/config.json"
|
bind = "default_server_name:__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"
|
|
||||||
|
|
|
@ -46,8 +46,8 @@
|
||||||
"en": "Choose a default home server",
|
"en": "Choose a default home server",
|
||||||
"fr": "Choisissez un serveur par défault"
|
"fr": "Choisissez un serveur par défault"
|
||||||
},
|
},
|
||||||
"example": "https://my-own-homeserver.tld",
|
"example": "my-own-homeserver.tld",
|
||||||
"default": "https://matrix-client.matrix.org"
|
"default": "matrix.org"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
|
|
|
@ -25,7 +25,6 @@ domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url=$YNH_APP_ARG_PATH
|
path_url=$YNH_APP_ARG_PATH
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
default_home_server=$YNH_APP_ARG_DEFAULT_HOME_SERVER
|
default_home_server=$YNH_APP_ARG_DEFAULT_HOME_SERVER
|
||||||
welcome_background_url=$""
|
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_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)
|
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
|
# 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
|
ynh_app_setting_set --app=$app --key=default_home_server --value=$default_home_server
|
||||||
fi
|
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
|
# Cleaning legacy permissions
|
||||||
if ynh_legacy_permissions_exists; then
|
if ynh_legacy_permissions_exists; then
|
||||||
ynh_legacy_permissions_delete_all
|
ynh_legacy_permissions_delete_all
|
||||||
|
|
Loading…
Add table
Reference in a new issue