X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/388687b7120815bc61f49de6c5dd0ea793dad67b..9198700edaa62858cbc8f07cc883b2d4283831a6:/cookbooks/tile/templates/default/expire-tiles.erb diff --git a/cookbooks/tile/templates/default/expire-tiles.erb b/cookbooks/tile/templates/default/expire-tiles.erb index 2f6a97d77..3a023d6b2 100644 --- a/cookbooks/tile/templates/default/expire-tiles.erb +++ b/cookbooks/tile/templates/default/expire-tiles.erb @@ -10,6 +10,6 @@ args = [ "--max", "<%= node[:tile][:styles].collect { |n,d| d[:max_zoom] }.max %>" ] -Dir.glob("/var/lib/replicate/expire-queue/changes-*.gz").each do |f| +Dir.glob("/var/lib/replicate/expire-queue/changes-*.gz").sort.each do |f| system("/usr/local/bin/expire-tiles-single", *args, f) && File::unlink(f) end