X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/0648fcb9863c589428c0268296d0ed016206e6c4..66db0f15b4041d1156f7837934db40159ac5c357:/cookbooks/tile/templates/default/expire-tiles.xenial.erb diff --git a/cookbooks/tile/templates/default/expire-tiles.xenial.erb b/cookbooks/tile/templates/default/expire-tiles.xenial.erb deleted file mode 100644 index 1a8a01a26..000000000 --- a/cookbooks/tile/templates/default/expire-tiles.xenial.erb +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/ruby - -# DO NOT EDIT - This file is being maintained by Chef - -require 'expire' - -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 %> - -Dir.glob("/var/lib/replicate/expire-queue/changes-*.gz").each do |f| - Expire::expire(f, 13, max_zoom, tile_dirs) - File::unlink(f) -end