From 7810dd3f34a4a9034efdda89a18179f9e08d38bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 9 Feb 2023 18:43:40 +0100 Subject: [PATCH 1/3] Fix permission url --- manifest.json | 6 +++--- scripts/install | 2 +- scripts/upgrade | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 55c1aee..e183343 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Opensource groupware for E-Mail, Contacts and Calender", "fr": "Groupware opensource pour les e-mail, contacts et calendrier" }, - "version": "5.0.1~ynh1", + "version": "5.0.1~ynh2", "url": "https://sogo.nu/", "upstream": { "license": "LGPL-2.1,GPL-2.0", @@ -31,7 +31,7 @@ "mysql" ], "requirements": { - "yunohost": ">= 4.3.0" + "yunohost": ">= 11.1.6.1" }, "arguments": { "install" : [ @@ -46,7 +46,7 @@ { "name": "is_public", "type": "boolean", - "help": { + "help": { "en": "If it's not public, everybody which want to access to any page of SOGo need to be authenticated on the SSO. On the public mode anybody can access to the authentication page. The shared calendar will be also accessible by anybody who has this link", "fr": "Si n'est pas publique, n'importe qui veux accéder à n'importe quelle page de SOGo doit être authentifié dans le SSO. Dans le mode publique n'importe qui peut accéder à la page d'authentification de SOGo. Les agenda partagé seront aussi accessible par n'import qui qui à ce liens." }, diff --git a/scripts/install b/scripts/install index 4b9d7be..231effb 100755 --- a/scripts/install +++ b/scripts/install @@ -158,7 +158,7 @@ fi ynh_permission_create --permission="sync_client" --allowed='visitors' --auth_header=false\ --label="Sync client" --protected=true --show_tile=false\ - --additional_urls="/Microsoft-Server-ActiveSync" "/principals" "/.well-known/caldav" "/.well-known/carddav" + --additional_urls="$domain/Microsoft-Server-ActiveSync" "$domain/principals" "$domain/.well-known/caldav" "$domain/.well-known/carddav" #================================================= # RELOAD NGINX diff --git a/scripts/upgrade b/scripts/upgrade index 14480f7..7709454 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -147,13 +147,14 @@ ynh_script_progression --message="Configuring permissions..." if ! ynh_permission_exists --permission sync_client; then ynh_permission_create --permission="sync_client" --allowed 'visitors' --auth_header=false\ --label="Sync client" --protected=true --show_tile=false\ - --additional_urls="/Microsoft-Server-ActiveSync" "/principals" "/.well-known/caldav" "/.well-known/carddav" + --additional_urls="$domain/Microsoft-Server-ActiveSync" "$domain/principals" "$domain/.well-known/caldav" "$domain/.well-known/carddav" python3 remove_sso_conf_persistent.py $domain \ || ynh_print_warn --message="Your file /etc/ssowat/""conf.json.persistent doesn't respect the json syntax. The config file wasn't cleaned. Please clean it manually." else ynh_permission_update --permission="sync_client" --add='visitors' --label="Sync client" --protected=true --show_tile=false + ynh_permission_url --permission "sync_client" --clear_urls ynh_permission_url --permission "sync_client" --auth_header=false\ - --add_url="/Microsoft-Server-ActiveSync" "/principals" "/.well-known/caldav" "/.well-known/carddav" + --add_url="$domain/Microsoft-Server-ActiveSync" "$domain/principals" "$domain/.well-known/caldav" "$domain/.well-known/carddav" fi #================================================= From 6fa023111ed3cd215670bc33f5385bd34b05791c Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 9 Feb 2023 17:54:56 +0000 Subject: [PATCH 2/3] Auto-update README --- README.md | 4 ++-- README_fr.md | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ee2dc3e..9c6bf45 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ It shall NOT be edited by hand. # SOGo for YunoHost -[![Integration level](https://dash.yunohost.org/integration/sogo.svg)](https://dash.yunohost.org/appci/app/sogo) ![Working status](https://ci-apps.yunohost.org/ci/badges/sogo.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/sogo.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/sogo.svg)](https://dash.yunohost.org/appci/app/sogo) ![Working status](https://ci-apps.yunohost.org/ci/badges/sogo.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/sogo.maintain.svg) [![Install SOGo with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=sogo) *[Lire ce readme en français.](./README_fr.md)* @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in SOGo is an opensource groupware solution which has Webmail, a global address book and Calender and Contacts which can be synced via caldav or cardav. -**Shipped version:** 5.0.1~ynh1 +**Shipped version:** 5.0.1~ynh2 **Demo:** https://demo.sogo.nu/SOGo/ ## Documentation and resources diff --git a/README_fr.md b/README_fr.md index 7bcc802..6b62b2e 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,27 +5,27 @@ It shall NOT be edited by hand. # SOGo pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/sogo.svg)](https://dash.yunohost.org/appci/app/sogo) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/sogo.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/sogo.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/sogo.svg)](https://dash.yunohost.org/appci/app/sogo) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/sogo.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/sogo.maintain.svg) [![Installer SOGo avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=sogo) *[Read this readme in english.](./README.md)* -> *Ce package vous permet d'installer SOGo rapidement et simplement sur un serveur YunoHost. -Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.* +> *Ce package vous permet d’installer SOGo rapidement et simplement sur un serveur YunoHost. +Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.* -## Vue d'ensemble +## Vue d’ensemble SOGo is an opensource groupware solution which has Webmail, a global address book and Calender and Contacts which can be synced via caldav or cardav. -**Version incluse :** 5.0.1~ynh1 +**Version incluse :** 5.0.1~ynh2 **Démo :** https://demo.sogo.nu/SOGo/ ## Documentations et ressources -* Site officiel de l'app : -* Documentation officielle de l'admin : -* Dépôt de code officiel de l'app : +* Site officiel de l’app : +* Documentation officielle de l’admin : +* Dépôt de code officiel de l’app : * Documentation YunoHost pour cette app : * Signaler un bug : @@ -41,4 +41,4 @@ ou sudo yunohost app upgrade sogo -u https://github.com/YunoHost-Apps/sogo_ynh/tree/testing --debug ``` -**Plus d'infos sur le packaging d'applications :** +**Plus d’infos sur le packaging d’applications :** \ No newline at end of file From 99feba05752a9bdec6c6438870c325e881df7d99 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Wed, 15 Feb 2023 06:10:45 +0000 Subject: [PATCH 3/3] Auto-update README --- README.md | 1 + README_fr.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 9c6bf45..26a3492 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ It shall NOT be edited by hand. # SOGo for YunoHost [![Integration level](https://dash.yunohost.org/integration/sogo.svg)](https://dash.yunohost.org/appci/app/sogo) ![Working status](https://ci-apps.yunohost.org/ci/badges/sogo.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/sogo.maintain.svg) + [![Install SOGo with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=sogo) *[Lire ce readme en français.](./README_fr.md)* diff --git a/README_fr.md b/README_fr.md index 6b62b2e..09ca4da 100644 --- a/README_fr.md +++ b/README_fr.md @@ -6,6 +6,7 @@ It shall NOT be edited by hand. # SOGo pour YunoHost [![Niveau d’intégration](https://dash.yunohost.org/integration/sogo.svg)](https://dash.yunohost.org/appci/app/sogo) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/sogo.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/sogo.maintain.svg) + [![Installer SOGo avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=sogo) *[Read this readme in english.](./README.md)*