X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/2abba408536d61181dbec5684fdc6d9035410fa0..e033253ef179175fd9be01fdbad4d44fd94fbcaf:/cookbooks/tile/recipes/default.rb 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