# 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 -%>
:sites => [
{
:name => "planet.openstreetmap.org",
- :log_pattern => "%YYYY-168-%MM-168-%DD-168.gz"
+ :log_pattern => "%YYYY-168-%MM-168-%DD-168.gz",
+ :days => "7"
},
{
:name => "www.openstreetmap.org",
- :log_pattern => "*-%YYYY-48-%MM-48-%DD-48.gz"
+ :log_pattern => "*-%YYYY-48-%MM-48-%DD-48.gz",
+ :days => "*"
}
]
}