From b5396956dc7034768cc167a9b814665380c73aa4 Mon Sep 17 00:00:00 2001 From: squeak Date: Sun, 19 Sep 2021 15:20:11 +0200 Subject: [PATCH 1/2] Stop using "rm -r" and use "ynh_secure_remove" helper. --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index ad447b2..e3564bd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -110,7 +110,7 @@ chown -R "$app":"$app" $final_path pushd "$final_path" ynh_use_nodejs # remove node_modules folder before upgrading (because dato dependencies need to be installed from scratch otherwise some dependencies are not properly upgraded) - sudo -u $app env $ynh_node_load_PATH rm -r node_modules + ynh_secure_remove --file="./node_modules" # reinstall dependencies from scratch sudo -u $app env $ynh_node_load_PATH npm install --loglevel warn popd From 6c8147cf875ad934c3ddb753e82704628eeb5492 Mon Sep 17 00:00:00 2001 From: squeak Date: Sun, 19 Sep 2021 15:20:15 +0200 Subject: [PATCH 2/2] 1.6.0~ynh2 --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index ed60b44..d6ac85c 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Store all kinds of data with an extremely customizable interface.", "fr": "Stockez tous types de données avec une interface complètement customizable." }, - "version": "1.6.0~ynh1", + "version": "1.6.0~ynh2", "url": "https://squeak.eauchat.org/dato", "upstream": { "license": "AGPL-3.0-or-later",