Cleanup www before installation on upgrade

This commit is contained in:
Félix Piédallu 2024-06-20 22:20:20 +02:00
parent 6ed8daec24
commit c8af38df6a

View file

@ -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 ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" BUILD_MODE=dist "$ynh_npm" run build
popd popd
ynh_secure_remove --file="$install_dir/www"
mv "$install_dir/sources/build" "$install_dir/www" mv "$install_dir/sources/build" "$install_dir/www"
ynh_secure_remove --file="$install_dir/sources" ynh_secure_remove --file="$install_dir/sources"