salt icon indicating copy to clipboard operation
salt copied to clipboard

logrotate creates .bak files in /etc/logrotate.d which logrotate reads.

Open jeffreyctang opened this issue 10 years ago • 1 comments

Platform: Ubuntu 14.04.3 LTS Salt Version: salt 2015.8.3 (Beryllium)

When editting a file in /etc/logrotate.d/ the logrotate module creates a .bak file. The logrotate program will read this extra file, which can be very confusing. The call to file.psed should be file.replace with backup=False for logrotate.d files

jeffreyctang avatar Feb 11 '16 18:02 jeffreyctang

@jeffreyctang, thanks for reporting. This should be easy to fix.

jfindlay avatar Feb 11 '16 18:02 jfindlay