diff --git a/puppet/templates/puppet-report-cleanup.erb b/puppet/templates/puppet-report-cleanup.erb index 5a6607d..c41c96c 100755 --- a/puppet/templates/puppet-report-cleanup.erb +++ b/puppet/templates/puppet-report-cleanup.erb @@ -6,6 +6,6 @@ if [ "`whoami`" = "root" ]; then fi find /srv/puppet/reports/ -xdev -mindepth 2 -type f -mtime +<%= @puppet_report_maxage %> \ - -name '*.yaml.gz' -execdir rm -f -- {} \; + -name '*.yaml.gz' -execdir rm -f -- {} \<% if @kernel == 'Linux' %>+<% else %>;<% end %> find /srv/puppet/reports/ -xdev -mindepth 2 -type f -mtime +1 \ - -name '*.yaml' -execdir gzip -- {} \; + -name '*.yaml' -execdir gzip -- {} \<% if @kernel == 'Linux' %>+<% else %>;<% end %>