From d6f09fdbad280c1f8f2a794432fdc6f971020461 Mon Sep 17 00:00:00 2001 From: mastereur <22839524+mastereur@users.noreply.github.com> Date: Sun, 29 Sep 2019 20:30:38 +0200 Subject: [PATCH] Fix #21 - Set new parameter "is_public" for old install (before July 05, 2019) --- manifest.json | 2 +- scripts/upgrade | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 34ec470..aac324d 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Dolibarr ERP & CRM is a modern and easy to use web software to manage your business (contacts, invoices, orders, products, stocks, agenda, emailings, etc...).", "fr": "Dolibarr ERP & CRM est un logiciel moderne de gestion de votre activité professionnelle ou associative (contacts, factures, commandes, stocks, agenda, etc...)." }, - "version": "10.0.2~ynh2", + "version": "10.0.2~ynh3", "url": "https://www.dolibarr.org/", "license": "GPL-3.0-or-later", "maintainer": { diff --git a/scripts/upgrade b/scripts/upgrade index f739549..47da599 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -45,6 +45,9 @@ if [ "$is_public" = "Yes" ]; then elif [ "$is_public" = "No" ]; then ynh_app_setting_set --app=$app --key=is_public --value=0 is_public=0 +else + ynh_app_setting_set --app=$app --key=is_public --value=0 + is_public=0 fi # If db_name doesn't exist, create it