Cleanup www before installation on upgrade
This commit is contained in:
parent
6ed8daec24
commit
c8af38df6a
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue