diff --git a/README.md b/README.md index 0e4431d..d93328d 100644 --- a/README.md +++ b/README.md @@ -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. -**Shipped version:** 1.10.14~ynh1 +**Shipped version:** 1.10.15~ynh1 **Demo:** https://app.element.io/ @@ -31,7 +31,7 @@ Element is a new type of messaging app. You choose where your messages are store ### Multi-users support -Now this application support the SSO. If you want to use the sso you need to define the path to the default homeserver as your homeserver witch is installed on your YunoHost instance. +This application support the SSO. If you want to use the SSO, you need to define the path to the default homeserver as your homeserver witch is installed on your YunoHost instance. ## Additional informations @@ -47,16 +47,6 @@ We have put some coarse mitigations into place to try to protect against this situation, but it's still not good practice to do it in the first place. See https://github.com/vector-im/riot-web/issues/1977 for more details. -### Migration from old app name "Riot" - -As this app don't contains any data on the server side no migration was made to migrate from "Riot" to "Element". -So you just will need to remove Riot and install Element on the same domain (you can change the path) to be able to keep the data on your web browser. -So the process to migrate to element is the following: - -1. Get the domain of "Riot": `yunohost app setting riot domain` -2. Remove Riot: `yunohost app remove riot` -3. Install Element: `yunohost app install element` - ## Documentation and resources * Official app website: diff --git a/README_fr.md b/README_fr.md index f43b7b8..9d76011 100644 --- a/README_fr.md +++ b/README_fr.md @@ -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. -**Version incluse :** 1.10.14~ynh1 +**Version incluse :** 1.10.15~ynh1 **Démo :** https://app.element.io/ @@ -31,7 +31,7 @@ Element est un nouveau type d'application de messagerie. Vous choisissez où vos ### Prise en charge multi-utilisateurs -Maintenant, cette application prend en charge le SSO. Si vous souhaitez utiliser le sso, vous devez définir le chemin d'accès au serveur domestique par défaut car votre serveur domestique est installé sur votre instance YunoHost. +Cette application prend en charge le SSO. Si vous souhaitez utiliser le SSO, vous devez définir le chemin d'accès au serveur domestique par défaut car votre serveur domestique est installé sur votre instance YunoHost. ## Informations supplémentaires @@ -47,16 +47,6 @@ Nous avons mis en place des mesures d'atténuation grossières pour essayer de n situation, mais ce n'est toujours pas une bonne pratique de le faire en premier lieu. Voir https://github.com/vector-im/riot-web/issues/1977 pour plus de détails. -### Migration à partir de l'ancien nom d'application "Riot" - -Comme cette application ne contient aucune donnée côté serveur, aucune migration n'a été effectuée pour migrer de "Riot" vers "Element". -Il vous suffira donc de supprimer Riot et d'installer Element sur le même domaine (vous pouvez modifier le chemin) pour pouvoir conserver les données sur votre navigateur Web. -Ainsi, le processus de migration vers l'élément est le suivant : - -1. Obtenez le domaine de "Riot": `yunohost app setting riot domain` -2. Supprimer Riot : `yunohost app remove riot` -3. Élément d'installation : `yunohost app install element` - ## Documentations et ressources * Site officiel de l'app : diff --git a/check_process b/check_process index b55b473..ec0f0de 100644 --- a/check_process +++ b/check_process @@ -15,11 +15,10 @@ upgrade=1 from_commit=34d457d13e526997fddb8348650674a7db2247be backup_restore=1 multi_instance=1 - port_already_use=0 change_url=1 ;;; Upgrade options ; commit=Sep 13, 2021 name=34d457d13e526997fddb8348650674a7db2247be manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666& - \ No newline at end of file + \ No newline at end of file diff --git a/conf/app.src b/conf/app.src index c699081..4322149 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/vector-im/element-web/releases/download/v1.10.14/element-v1.10.14.tar.gz -SOURCE_SUM=1251b2d25c6195f9fef2283e0b9cc93e7a7bedbb13119d6e7d14331d8fd6d650 +SOURCE_URL=https://github.com/vector-im/element-web/releases/download/v1.10.15/element-v1.10.15.tar.gz +SOURCE_SUM=a2c39b9cdb36ac3f4d028bf83edd4091cd54b27df73a91040ae99886ddbfd416 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/config.json b/conf/config.json index fb0a558..7a5b772 100644 --- a/conf/config.json +++ b/conf/config.json @@ -1,13 +1,17 @@ { - "default_hs_url": "https://__DEFAULT_HOME_SERVER__", - "default_is_url": "https://vector.im", + "default_server_name": "__DEFAULT_HOME_SERVER__", "brand": "Element", "integrations_ui_url": "https://scalar.vector.im/", "integrations_rest_url": "https://scalar.vector.im/api", - "enableLabs": true, + "showLabsSettings": false, "roomDirectory": { "servers": [ "matrix.org" ] + }, + "enable_presence_by_hs_url": { + "https://matrix.org": false, + "https://matrix-client.matrix.org": false } } + diff --git a/config_panel.toml b/config_panel.toml new file mode 100644 index 0000000..577ee16 --- /dev/null +++ b/config_panel.toml @@ -0,0 +1,14 @@ +version = "1.0" + +[main] +name = "Element configuration" + + [main.config] + name = "Server Configuration" + + [main.config.default_home_server] + ask = "Choose a home server" + type = "string" + default = "matrix.org" + help = "Choose your default Matrix server's domain name. Default is matrix.org" + bind = "default_server_name:__FINALPATH__/config.json" diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index 5f9bf9f..22d6e95 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -2,7 +2,7 @@ ### Multi-users support -Now this application support the SSO. If you want to use the sso you need to define the path to the default homeserver as your homeserver witch is installed on your YunoHost instance. +This application support the SSO. If you want to use the SSO, you need to define the path to the default homeserver as your homeserver witch is installed on your YunoHost instance. ## Additional informations @@ -17,13 +17,3 @@ access to Element (or other apps) due to sharing the same domain. We have put some coarse mitigations into place to try to protect against this situation, but it's still not good practice to do it in the first place. See https://github.com/vector-im/riot-web/issues/1977 for more details. - -### Migration from old app name "Riot" - -As this app don't contains any data on the server side no migration was made to migrate from "Riot" to "Element". -So you just will need to remove Riot and install Element on the same domain (you can change the path) to be able to keep the data on your web browser. -So the process to migrate to element is the following: - -1. Get the domain of "Riot": `yunohost app setting riot domain` -2. Remove Riot: `yunohost app remove riot` -3. Install Element: `yunohost app install element` diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md index 07f2ecf..0ac8dd8 100644 --- a/doc/DISCLAIMER_fr.md +++ b/doc/DISCLAIMER_fr.md @@ -2,7 +2,7 @@ ### Prise en charge multi-utilisateurs -Maintenant, cette application prend en charge le SSO. Si vous souhaitez utiliser le sso, vous devez définir le chemin d'accès au serveur domestique par défaut car votre serveur domestique est installé sur votre instance YunoHost. +Cette application prend en charge le SSO. Si vous souhaitez utiliser le SSO, vous devez définir le chemin d'accès au serveur domestique par défaut car votre serveur domestique est installé sur votre instance YunoHost. ## Informations supplémentaires @@ -17,13 +17,3 @@ accès à Element (ou à d'autres applications) en raison du partage du même do Nous avons mis en place des mesures d'atténuation grossières pour essayer de nous protéger contre ce situation, mais ce n'est toujours pas une bonne pratique de le faire en premier lieu. Voir https://github.com/vector-im/riot-web/issues/1977 pour plus de détails. - -### Migration à partir de l'ancien nom d'application "Riot" - -Comme cette application ne contient aucune donnée côté serveur, aucune migration n'a été effectuée pour migrer de "Riot" vers "Element". -Il vous suffira donc de supprimer Riot et d'installer Element sur le même domaine (vous pouvez modifier le chemin) pour pouvoir conserver les données sur votre navigateur Web. -Ainsi, le processus de migration vers l'élément est le suivant : - -1. Obtenez le domaine de "Riot": `yunohost app setting riot domain` -2. Supprimer Riot : `yunohost app remove riot` -3. Élément d'installation : `yunohost app install element` diff --git a/manifest.json b/manifest.json index 08118b1..11bb6f6 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Web client for Matrix", "fr": "Client web pour Matrix" }, - "version": "1.10.14~ynh1", + "version": "1.10.15~ynh1", "url": "https://element.io", "upstream": { "license": "Apache-2.0", diff --git a/scripts/upgrade b/scripts/upgrade index e6e1c85..ba4ec4c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -41,6 +41,24 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors +#================================================= +# ENSURE DOWNWARD COMPATIBILITY +#================================================= +ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 + +# If default_home_server doesn't exist, create it +if [ -z "$default_home_server" ]; then + default_home_server="https://matrix-client.matrix.org" + ynh_app_setting_set --app=$app --key=default_home_server --value=$default_home_server +fi + +# Cleaning legacy permissions +if ynh_legacy_permissions_exists; then + ynh_legacy_permissions_delete_all + + ynh_app_setting_delete --app=$app --key=is_public +fi + #================================================= # CREATE DEDICATED USER #=================================================