Commit c38c8748 authored by Jonathan Passerat-Palmbach's avatar Jonathan Passerat-Palmbach
Browse files

fix: Ensure target folder is cleaned before deploying webapp

parent 31808c25
......@@ -156,11 +156,14 @@ define xnat::xnatapp (
owner => $::tomcat::user,
group => $::tomcat::group,
} ->
file { "$tomcat_root/webapps/$instance_name":
ensure => absent,
force => true,
} ->
tomcat::war { "${instance_name}.war":
war_source => "$installer_dir/deployments/$instance_name/target/$instance_name.war",
deployment_path => "$tomcat_root/webapps",
deployment_path => "$tomcat_root/webapps",
war_ensure => present,
war_purge => true,
notify => Service[$tomcat_version],
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment