X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/fb3022d7a7139bed87a118e7f7928681c886b1fd..9d5aa5e1104a96947d90761919fbbe181d729d27:/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