From c8af38df6a2c77fb7676fd58e8873c7cbfe0af0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 20 Jun 2024 22:20:20 +0200 Subject: [PATCH] Cleanup www before installation on upgrade --- scripts/upgrade | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/upgrade b/scripts/upgrade index 26b6b46..f6d6e51 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,6 +29,7 @@ pushd "$install_dir/sources" ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" BUILD_MODE=dist "$ynh_npm" run build popd +ynh_secure_remove --file="$install_dir/www" mv "$install_dir/sources/build" "$install_dir/www" ynh_secure_remove --file="$install_dir/sources"