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", 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