]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/expire-tiles.erb
Upgrade to postgres 14 on culebre and nidhogg
[chef.git] / cookbooks / tile / templates / default / expire-tiles.erb
index 2f6a97d773ee9ddb27ab442477327f0ab04bcca9..3a023d6b2bb71ee85d372997ab1f39522f92a2f9 100644 (file)
@@ -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