X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/a0cc3b39962e5921f7a79ea35e2591e163148714..55e94b06f8e0d01c6c91b584b9ffe37d809e066a:/cookbooks/stats/templates/default/awstats.cron.erb diff --git a/cookbooks/stats/templates/default/awstats.cron.erb b/cookbooks/stats/templates/default/awstats.cron.erb index 819287074..5d081e619 100644 --- a/cookbooks/stats/templates/default/awstats.cron.erb +++ b/cookbooks/stats/templates/default/awstats.cron.erb @@ -1,5 +1,5 @@ # DO NOT EDIT - This file is being maintained by Chef <% @sites.each_with_index do |site,index| -%> -0 <%= "%02d" % [ 8 + index * 2 ] %> * * * www-data /usr/lib/cgi-bin/awstats.pl -config=<%= site[:name] %> -update > /dev/null +0 <%= "%02d" % [ 8 + index * 2 ] %> * * <%= site[:days] %> www-data /usr/lib/cgi-bin/awstats.pl -config=<%= site[:name] %> -update > /dev/null <% end -%>