From: Grant Slater Date: Thu, 25 Jul 2013 14:28:50 +0000 (+0100) Subject: Tile: shapeindex (mapnik) all shp files X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/e033253ef179175fd9be01fdbad4d44fd94fbcaf?ds=inline Tile: shapeindex (mapnik) all shp files --- diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 8af830cdd..18a708721 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -177,6 +177,14 @@ node[:tile][:data].each do |name,data| end end + execute "#{file}_shapeindex" do + action :nothing + command "find #{directory} -type f -iname '*.shp' -print0 | xargs -0 --no-run-if-empty shapeindex --shape_files" + user "tile" + user "tile" + subscribes :run, resources(:execute => file), :immediately + end + remote_file file do action :create_if_missing source url