From 48af61128474c394c78b5535fd9c4ffb6e30e6ad Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 12 Jun 2023 20:16:13 +0200 Subject: [PATCH 01/10] Upgrade to v2.3.25 --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index c92d2d2..12e8373 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Leantime" description.en = "Project management system for startups and innovators" description.fr = "Système de gestion de projet pour les startups et les innovateurs" -version = "2.3.23~ynh1" +version = "2.3.25~ynh1" maintainers = ["eric_G"] @@ -45,8 +45,8 @@ ram.runtime = "50M" [resources.sources] [resources.sources.main] - url = "https://github.com/Leantime/leantime/releases/download/v2.3.23/Leantime-v2.3.23.tar.gz" - sha256 = "13c7a757a5bdd96d7c74042395ed68a74b50347cc5c30023a561aeba1375bc7e" + url = "https://github.com/Leantime/leantime/archive/refs/tags/v2.3.25.tar.gz" + sha256 = "8ada8c62b709e96872eff10747c5057620f3444ad90e74409a3207d9abe5c409" autoupdate.strategy = "latest_github_tag" [resources.system_user] From 656939eb4888994e685f58d36447285ed46b345d Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 12 Jun 2023 18:16:16 +0000 Subject: [PATCH 02/10] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 28db73c..81f0ea2 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Leantime is a lean open source project management system for startups and innovators. It's an alternative to ClickUp, Notion, and Asana. -**Shipped version:** 2.3.23~ynh1 +**Shipped version:** 2.3.25~ynh1 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 5cff8e9..c613935 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Leantime est un système de gestion de projet open source allégé pour les startups et les innovateurs. C'est une alternative à ClickUp, Notion et Asana. -**Version incluse :** 2.3.23~ynh1 +**Version incluse :** 2.3.25~ynh1 ## Captures d’écran From c7c6792340a0b1699244c7aff72bd38c3ccdb119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 12 Jun 2023 21:22:37 +0200 Subject: [PATCH 03/10] Update manifest.toml --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index 12e8373..63406e0 100644 --- a/manifest.toml +++ b/manifest.toml @@ -16,7 +16,7 @@ admindoc = "https://docs.leantime.io" code = "https://github.com/Leantime/leantime" [integration] -yunohost = ">= 11.1.19" +yunohost = ">= 11.1.20" architectures = "all" multi_instance = true ldap = true @@ -45,8 +45,8 @@ ram.runtime = "50M" [resources.sources] [resources.sources.main] - url = "https://github.com/Leantime/leantime/archive/refs/tags/v2.3.25.tar.gz" - sha256 = "8ada8c62b709e96872eff10747c5057620f3444ad90e74409a3207d9abe5c409" + url = "https://github.com/Leantime/leantime/releases/download/v2.3.25/Leantime-v2.3.25.tar.gz" + sha256 = "7afcabadc151c95ea6dd3628ed4f512d8d429836beb3c0f3b4c0b55f4b6936d2" autoupdate.strategy = "latest_github_tag" [resources.system_user] From 9d3e9cfe85f34734bf44d249e006b2a81357e9c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 20 Jul 2023 22:59:54 +0200 Subject: [PATCH 04/10] Update manifest.toml Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> --- manifest.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 63406e0..23ba1ad 100644 --- a/manifest.toml +++ b/manifest.toml @@ -47,7 +47,8 @@ ram.runtime = "50M" [resources.sources.main] url = "https://github.com/Leantime/leantime/releases/download/v2.3.25/Leantime-v2.3.25.tar.gz" sha256 = "7afcabadc151c95ea6dd3628ed4f512d8d429836beb3c0f3b4c0b55f4b6936d2" - autoupdate.strategy = "latest_github_tag" + autoupdate.strategy = "latest_github_release" + autoupdate.asset = "Leantime-v*.tar.gz" [resources.system_user] From 34a45f8d3af202e22bf6954c468ceb2c940215c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 20 Jul 2023 23:01:06 +0200 Subject: [PATCH 05/10] Update manifest.toml --- manifest.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index 23ba1ad..fabed7a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -16,7 +16,7 @@ admindoc = "https://docs.leantime.io" code = "https://github.com/Leantime/leantime" [integration] -yunohost = ">= 11.1.20" +yunohost = ">= 11.1.21" architectures = "all" multi_instance = true ldap = true @@ -36,7 +36,7 @@ ram.runtime = "50M" [install.language] ask.en = "Choose the application language" ask.fr = "Choisissez la langue de l'application" - type = "string" + type = "select" choices = ["en-US", "es-ES", "it-IT", "fr-FR"] default = "fr-FR" From b14596b587883000f5744026899386541021bc55 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 21 Jul 2023 09:03:20 +0200 Subject: [PATCH 06/10] Update manifest.toml --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index fabed7a..204b7b4 100644 --- a/manifest.toml +++ b/manifest.toml @@ -19,7 +19,7 @@ code = "https://github.com/Leantime/leantime" yunohost = ">= 11.1.21" architectures = "all" multi_instance = true -ldap = true +ldap = false sso = false disk = "50M" ram.build = "50M" From 0d281b812586f73765df47657511928d6925c625 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 21 Jul 2023 09:04:44 +0200 Subject: [PATCH 07/10] Update change_url --- scripts/change_url | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 4ba8cf7..c375609 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -16,6 +16,16 @@ ynh_script_progression --message="Updating NGINX web server configuration..." -- ynh_change_url_nginx_config +#================================================= +# ADD A CONFIGURATION +#================================================= +ynh_script_progression --message="Adding a configuration file..." --weight=1 + +ynh_add_config --template="../conf/.env" --destination="$install_dir/config/.env" + +chmod 400 "$install_dir/config/.env" +chown $app:$app "$install_dir/config/.env" + #================================================= # END OF SCRIPT #================================================= From e64ab74fe867ccb6c173fc55c0ed893e32d1ab57 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 21 Jul 2023 09:09:41 +0200 Subject: [PATCH 08/10] Update change_url --- scripts/change_url | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index c375609..002e1f7 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -9,6 +9,9 @@ source _common.sh source /usr/share/yunohost/helpers +timezone="$(cat /etc/timezone)" +key=$(ynh_string_random --length=18) + #================================================= # MODIFY URL IN NGINX CONF #================================================= From 150fccc95f1274e4e9b707ecbe373e31efef57e5 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 21 Jul 2023 09:13:43 +0200 Subject: [PATCH 09/10] Update manifest.toml --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index 204b7b4..0c1f81d 100644 --- a/manifest.toml +++ b/manifest.toml @@ -45,10 +45,10 @@ ram.runtime = "50M" [resources.sources] [resources.sources.main] - url = "https://github.com/Leantime/leantime/releases/download/v2.3.25/Leantime-v2.3.25.tar.gz" - sha256 = "7afcabadc151c95ea6dd3628ed4f512d8d429836beb3c0f3b4c0b55f4b6936d2" + url = "https://github.com/Leantime/leantime/releases/download/v2.3.25/Leantime-v2.3.25.zip" + sha256 = "aa42487659ace89bfa884226cf8a9070e2f1f45777edf726731760523fa903c3" autoupdate.strategy = "latest_github_release" - autoupdate.asset = "Leantime-v*.tar.gz" + autoupdate.asset = "Leantime-v*.zip" [resources.system_user] From 3d3a5caf3e5a3663904d519f2ee4abf650744dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 21 Jul 2023 14:18:55 +0200 Subject: [PATCH 10/10] fix --- scripts/install | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 8d4db20..7b25211 100755 --- a/scripts/install +++ b/scripts/install @@ -22,6 +22,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" +chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 87df7f1..87260f9 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,6 +25,7 @@ then ynh_setup_source --dest_dir="$install_dir" --keep="config/.env" fi +chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #=================================================