X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/66db0f15b4041d1156f7837934db40159ac5c357..2dc17000f8f4c51332d20d3b28fa746367dd7838:/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 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