]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/recipes/default.rb
Rework tile cache logging to avoid duplication
[chef.git] / cookbooks / tilecache / recipes / default.rb
index 41a4e7f71935e018806e296b53ef4ac4b659ce57..0a02e1567edfac8c19ce52df47e44b55b724685d 100644 (file)
@@ -138,3 +138,7 @@ tilerenders.each do |render|
     conf_variables :host => render[:fqdn]
   end
 end
+
+Dir.glob("/var/log/nginx/access.log*") do |log|
+  File.unlink(log)
+end