From 81460fa1221eb628e566b84d8a697ccf18e4251d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 5 Jan 2024 15:46:07 +0100 Subject: [PATCH] cleanup --- scripts/install | 4 +++- scripts/upgrade | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index be7a740..740e389 100755 --- a/scripts/install +++ b/scripts/install @@ -36,8 +36,10 @@ pushd "$install_dir/source" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" npm i ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" npm run build - ynh_secure_remove --file="node_modules" popd +ynh_secure_remove --file="$install_dir/source/node_modules" +ynh_secure_remove --file="$install_dir/.cache" +ynh_secure_remove --file="$install_dir/.npm" mv "$install_dir/source/dist/editor" "$install_dir/www" diff --git a/scripts/upgrade b/scripts/upgrade index 4550dea..7a4abfb 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -42,8 +42,10 @@ pushd "$install_dir/source" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" npm i ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" npm run build - ynh_secure_remove --file="node_modules" popd +ynh_secure_remove --file="$install_dir/source/node_modules" +ynh_secure_remove --file="$install_dir/.cache" +ynh_secure_remove --file="$install_dir/.npm" mv "$install_dir/source/dist/editor" "$install_dir/www"