]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/expire-tiles.erb
Touch XML files to reflect date of original RRD file. Don't run dump in parallel...
[chef.git] / cookbooks / tile / templates / default / expire-tiles.erb
index beea05dd95093305183a1e63901f0491289926e7..2c0e7406e10c2e9c5d81ac5565fc210aba037373 100644 (file)
@@ -8,8 +8,10 @@ tile_dirs = [
 <% node[:tile][:styles].each do |name,details| -%>
   "/srv/tile.openstreetmap.org/tiles/<%= name %>",
 <% end -%>
-];
+]
+
+max_zoom = <%= node[:tile][:styles].collect { |n,d| d[:max_zoom] }.max %>
 
 ARGV.each do |f|
-   Expire::expire(f, tile_dirs)
+   Expire::expire(f, 13, max_zoom, tile_dirs)
 end