]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/recipes/default.rb
Allow osm2pgsql replication to write to tile directories
[chef.git] / cookbooks / tile / recipes / default.rb
index bfedc3c170ff4ef2bf239fe6269d46f7e89ea3ed..41c63cd4f81f1b9c95f55252027be7035d3a3f65 100644 (file)
@@ -638,7 +638,8 @@ elsif node[:tile][:replication][:engine] == "osm2pgsql"
     exec_start "/bin/osm2pgsql-replication update --database gis --post-processing /usr/local/bin/expire-tiles -- #{osm2pgsql_arguments.join(' ')}"
     sandbox :enable_network => true
     restrict_address_families "AF_UNIX"
-    read_write_paths [
+    read_write_paths tile_directories + [
+      "/srv/tile.openstreetmap.org/tiles",
       "/store/database/nodes",
       "/var/lib/replicate"
     ]