]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/expire-tiles.erb
Don't warn when the tile cleanup script can't get a lock
[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