From d062d7b1ac5da746ddb09b53c4f28c041752c901 Mon Sep 17 00:00:00 2001 From: squeak Date: Wed, 15 Sep 2021 23:00:43 +0200 Subject: [PATCH] Corrected upgrade script so that it upgrade properly dato node dependencies. --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index ae846d2..ad447b2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -109,6 +109,9 @@ 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 + # reinstall dependencies from scratch sudo -u $app env $ynh_node_load_PATH npm install --loglevel warn popd