From 996e5feac0224497bbce938217bc1126959ab468 Mon Sep 17 00:00:00 2001 From: mastereur <22839524+mastereur@users.noreply.github.com> Date: Mon, 7 Nov 2022 16:35:41 +0100 Subject: [PATCH] Update to 16.0.1 --- README.md | 2 +- README_fr.md | 2 +- manifest.json | 2 +- scripts/install | 14 ++++++++++++++ scripts/upgrade.d/upgrade.last.sh | 4 ++-- 5 files changed, 19 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 547b773..eb3f6c8 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 Dolibarr ERP & CRM is a modern software for managing your professional or associative activity (contacts, invoices, orders, stocks, agenda, etc.). -**Shipped version:** 16.0.0~ynh1 +**Shipped version:** 16.0.1~ynh1 **Demo:** https://www.dolibarr.org/onlinedemo diff --git a/README_fr.md b/README_fr.md index d9fdedd..2a4a565 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 Dolibarr ERP & CRM est un logiciel moderne de gestion de votre activité professionnelle ou associative (contacts, factures, commandes, stocks, agenda, etc.). -**Version incluse :** 16.0.0~ynh1 +**Version incluse :** 16.0.1~ynh1 **Démo :** https://www.dolibarr.org/onlinedemo diff --git a/manifest.json b/manifest.json index 51da709..31045d5 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Manage the various aspects of your business or association", "fr": "Gérez les différents aspects de votre activité pro ou associative" }, - "version": "16.0.0~ynh1", + "version": "16.0.1~ynh1", "url": "https://www.dolibarr.org/", "upstream": { "license": "GPL-3.0-or-later", diff --git a/scripts/install b/scripts/install index 996d4a3..b07ef51 100644 --- a/scripts/install +++ b/scripts/install @@ -25,6 +25,7 @@ path_url=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN member=0 #is_public=0 +phpversion=$YNH_PHP_VERSION app=$YNH_APP_INSTANCE_NAME @@ -85,6 +86,19 @@ ynh_mysql_execute_as_root --sql="ALTER DATABASE $db_name charset=utf8" #================================================= ynh_script_progression --message="Setting up source files..." --weight=1 + +# Load the last available version +source upgrade.d/upgrade.last.sh + +# Create an app.src for the last version of nextcloud +cat > ../conf/app.src << EOF +SOURCE_URL=https://github.com/Dolibarr/dolibarr/archive/$next_version.tar.gz +SOURCE_SUM=$dolibarr_source_sha256 +SOURCE_SUM_PRG=sha256sum +SOURCE_FORMAT=tar.bz2 +SOURCE_IN_SUBDIR=true +EOF + ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src diff --git a/scripts/upgrade.d/upgrade.last.sh b/scripts/upgrade.d/upgrade.last.sh index d3ff37a..f7a8a92 100644 --- a/scripts/upgrade.d/upgrade.last.sh +++ b/scripts/upgrade.d/upgrade.last.sh @@ -1,7 +1,7 @@ #!/bin/bash # Target version of the Dolibarr update -next_version="16.0.0" +next_version="16.0.1" # Dolibarr tarball checksum -dolibarr_source_sha256="76a642d74cd3e4fe86fdeccffacd0fa2b22a398dc03e7ad92edb34d033b17b2f" \ No newline at end of file +dolibarr_source_sha256="f3614cf7b08c80d1aed4ebe0434008b2b03867d12b85df45b682c217ecb16573" \ No newline at end of file