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

Merge pull request #80 from YunoHost-Apps/testing

Testing
This commit is contained in:
Éric Gaspar 2022-10-26 23:08:46 +02:00 committed by GitHub
commit a39ed53247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 33 additions and 6 deletions

View file

@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Element is a new type of messaging app. You choose where your messages are stored, putting you in control of your data. It gives you access to the Matrix open network, so you can talk to anyone. Element provides a new level of security, adding cross-signed device verification to default end-to-end encryption. Element is a new type of messaging app. You choose where your messages are stored, putting you in control of your data. It gives you access to the Matrix open network, so you can talk to anyone. Element provides a new level of security, adding cross-signed device verification to default end-to-end encryption.
**Shipped version:** 1.11.10~ynh1 **Shipped version:** 1.11.12~ynh1
**Demo:** https://app.element.io/ **Demo:** https://app.element.io/

View file

@ -17,7 +17,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
Element est un nouveau type d'application de messagerie. Vous choisissez où vos messages sont stockés, ce qui vous donne le contrôle de vos données. Il vous donne accès au réseau ouvert Matrix, vous pouvez donc parler à n'importe qui. Element offre un nouveau niveau de sécurité, en ajoutant la vérification des appareils par signature croisée au chiffrement de bout en bout par défaut. Element est un nouveau type d'application de messagerie. Vous choisissez où vos messages sont stockés, ce qui vous donne le contrôle de vos données. Il vous donne accès au réseau ouvert Matrix, vous pouvez donc parler à n'importe qui. Element offre un nouveau niveau de sécurité, en ajoutant la vérification des appareils par signature croisée au chiffrement de bout en bout par défaut.
**Version incluse :** 1.11.10~ynh1 **Version incluse :** 1.11.12~ynh1
**Démo :** https://app.element.io/ **Démo :** https://app.element.io/

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/vector-im/element-web/releases/download/v1.11.10/element-v1.11.10.tar.gz SOURCE_URL=https://github.com/vector-im/element-web/releases/download/v1.11.12/element-v1.11.12.tar.gz
SOURCE_SUM=153853fc3f1ad3f5da791834904b107d88bb71caf573eb52a2d81bf4a34f634a SOURCE_SUM=62469002d03600c220de90b6f009f4b1016d2bdeb2255145c544f3144ddd1c84
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -15,6 +15,8 @@
"enable_presence_by_hs_url": { "enable_presence_by_hs_url": {
"https://matrix.org": false, "https://matrix.org": false,
"https://matrix-client.matrix.org": false "https://matrix-client.matrix.org": false
},
"embedded_pages": {
"login_for_welcome": __LOGIN_FOR_WELCOME__
} }
} }

15
config_panel.toml Normal file
View file

@ -0,0 +1,15 @@
version = "1.0"
[main]
name = "Element configuration"
[main.config]
name = "Configuration Options"
[main.config.login_for_welcome]
ask = "Display login as welcome page"
type = "boolean"
yes = true
no = false
help = "When true, the app will use the login form as a welcome page instead of the welcome page itself. This disables use of welcome_url and all welcome page functionality."
bind = "login_for_welcome:/var/www/__APP__/config.json"

View file

@ -6,7 +6,7 @@
"en": "Web client for Matrix", "en": "Web client for Matrix",
"fr": "Client web pour Matrix" "fr": "Client web pour Matrix"
}, },
"version": "1.11.10~ynh1", "version": "1.11.12~ynh1",
"url": "https://element.io", "url": "https://element.io",
"upstream": { "upstream": {
"license": "Apache-2.0", "license": "Apache-2.0",

View file

@ -28,6 +28,8 @@ default_home_server=$YNH_APP_ARG_DEFAULT_HOME_SERVER
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
login_for_welcome=true
#================================================= #=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
#================================================= #=================================================
@ -47,6 +49,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=1
ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url ynh_app_setting_set --app=$app --key=path --value=$path_url
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
ynh_app_setting_set --app=$app --key=login_for_welcome --value=$login_for_welcome
#================================================= #=================================================
# CREATE DEDICATED USER # CREATE DEDICATED USER

View file

@ -21,6 +21,8 @@ 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)
login_for_welcome=$(ynh_app_setting_get --app=$app --key=login_for_welcome)
#================================================= #=================================================
# CHECK VERSION # CHECK VERSION
#================================================= #=================================================
@ -52,6 +54,11 @@ 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 [ -z "$login_for_welcome" ]; then
login_for_welcome=true
ynh_app_setting_set --app=$app --key=login_for_welcome --value=$login_for_welcome
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