From: Tom Hughes Date: Fri, 24 Mar 2017 00:00:36 +0000 (+0000) Subject: Merge remote-tracking branch 'github/pull/118' X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/016c7dfacda321c44808f179a0ec4e66954336cc?hp=345227077c93652c7ab11d863e480d2efc20aa18 Merge remote-tracking branch 'github/pull/118' --- diff --git a/cookbooks/tile/templates/default/expire-tiles.erb b/cookbooks/tile/templates/default/expire-tiles.erb index 6716fd66c..1a8a01a26 100644 --- a/cookbooks/tile/templates/default/expire-tiles.erb +++ b/cookbooks/tile/templates/default/expire-tiles.erb @@ -12,7 +12,7 @@ tile_dirs = [ max_zoom = <%= node[:tile][:styles].collect { |n,d| d[:max_zoom] }.max %> -Dir.glob("/var/lib/replicate/expire-queue/changes-*.osm.gz").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 diff --git a/cookbooks/tile/templates/default/replicate.erb b/cookbooks/tile/templates/default/replicate.erb index ecc6b69b0..9d86d9534 100644 --- a/cookbooks/tile/templates/default/replicate.erb +++ b/cookbooks/tile/templates/default/replicate.erb @@ -28,7 +28,7 @@ trap onexit EXIT while true do # Work out the name of the next file - file="changes-${sequenceNumber}.osm.gz" + file="changes-${sequenceNumber}.osc.gz" # Save state file so we can rollback if an error occurs cp state.txt state-prev.txt