X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/468dde2d236ea2cbcfcecef05cb17d2261f117ea..23b6f6fb29fba9c2a7f9e6d9bf8d1ece35bc66f2:/cookbooks/tile/templates/default/expire-tiles.erb?ds=sidebyside diff --git a/cookbooks/tile/templates/default/expire-tiles.erb b/cookbooks/tile/templates/default/expire-tiles.erb index beea05dd9..2c0e7406e 100644 --- a/cookbooks/tile/templates/default/expire-tiles.erb +++ b/cookbooks/tile/templates/default/expire-tiles.erb @@ -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