diff --git a/scripts/upgrade b/scripts/upgrade index b582c60..a88ec38 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