From 3c483e9289212a4b2f5e77c812d1deb562e07b08 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 4 Jul 2021 19:47:11 +0200 Subject: [PATCH] Remove package-lock.json --- scripts/install | 3 +++ scripts/upgrade | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index 0d9f3f8..fef4106 100644 --- a/scripts/install +++ b/scripts/install @@ -266,6 +266,9 @@ popd chown -R $app: $final_path/node_modules +# Remove package-lock.json otherwise plugins installation and upgrade fails miserablywith 502 error +ynh_secure_remove --file="$final_path/package-lock.json" + #================================================= # SOME HACKS #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 013cc82..dfe4f87 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -315,6 +315,9 @@ popd chown -R $app: $final_path/node_modules +# Remove package-lock.json otherwise plugins installation and upgrade fails miserablywith 502 error +ynh_secure_remove --file="$final_path/package-lock.json" + #================================================= # SPECIFIC UPGRADE #=================================================