summaryrefslogtreecommitdiff
path: root/lib/chef/provider/template.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/template.rb')
-rw-r--r--lib/chef/provider/template.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/template.rb b/lib/chef/provider/template.rb
index fbd5c600b9..6df671c8e5 100644
--- a/lib/chef/provider/template.rb
+++ b/lib/chef/provider/template.rb
@@ -66,7 +66,7 @@ class Chef
description << diff_current(rendered_template.path)
converge_by(description) do
backup
- FileUtils.mv(rendered_template.path, @new_resource.path)
+ FileUtils.cp(rendered_template.path, @new_resource.path)
Chef::Log.info("#{@new_resource} updated content")
access_controls.set_all!
update_new_file_state(@new_resource.path)