]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/expire-tiles.erb
Don't disable loopback connection tracking on 14.04
[chef.git] / cookbooks / tile / templates / default / expire-tiles.erb
index 2c0e7406e10c2e9c5d81ac5565fc210aba037373..1a8a01a26b190ebff4fbe4082eccb8503d2e066b 100644 (file)
@@ -12,6 +12,7 @@ tile_dirs = [
 
 max_zoom = <%= node[:tile][:styles].collect { |n,d| d[:max_zoom] }.max %>
 
-ARGV.each do |f|
+Dir.glob("/var/lib/replicate/expire-queue/changes-*.gz").each do |f|
    Expire::expire(f, 13, max_zoom, tile_dirs)
+   File::unlink(f)
 end