Skip to content

Commit cb66f27

Browse files
committed
[CHEF-1396] use mv not cp to move staged templates into place
1 parent 726f625 commit cb66f27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎chef/lib/chef/provider/template.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def action_create
5252
Chef::Log.info("Writing updated content for #{@new_resource} to #{@new_resource.path}")
5353
backup
5454
set_all_access_controls(rendered_template.path)
55-
FileUtils.cp(rendered_template.path, @new_resource.path)
55+
FileUtils.mv(rendered_template.path, @new_resource.path)
5656
@new_resource.updated = true
5757
end
5858
end

0 commit comments

Comments
 (0)