Chef-client run making unwanted backup copy of file in file_edit.rb


#1

Trying to use file_edit.rb

Line 87
FileUtils.cp(original_pathname, backup_pathname, :preserve => true)
And don’t want it to make a backup.
I am working in this directory -> /etc/sysconfig/network-scripts
and the .old file will be read in and used.

Please advise if there is way around this

Chef Version

Chef: 12.11.18

Platform Version

Oracle Linux Server release 6.6