X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/388687b7120815bc61f49de6c5dd0ea793dad67b..ab47927c016597f8602b81dcdc168ad5c335389d:/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