From 383b45fb963568bd3caf76df26053d96555d4c0a Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Thu, 2 Apr 2020 00:46:19 +0200 Subject: [PATCH] Fix plugin issue --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 34c9859..6260296 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -223,6 +223,8 @@ ynh_script_progression --message="Upgrading Etherpad npm modules..." --weight=60 chown -R $app: $final_path (cd "$final_path/src" ynh_exec_warn_less npm cache clean --force +# Remove package-lock.json to prevent any shit during npm update... +ynh_secure_remove --file="$final_path/src/package-lock.json" ynh_exec_warn_less ynh_exec_as $app PATH="$nodejs_path:$PATH" "$nodejs_path/npm" update) # Then update the additionnal modules