From: Tom Hughes Date: Tue, 27 Apr 2021 19:55:14 +0000 (+0100) Subject: Allow external data script to grant render permission X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/e41ce8527c0cc0e9a9984a8459cbd3dd508bdda3 Allow external data script to grant render permission --- diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 7d5052fc2..0f8cd9303 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -436,20 +436,11 @@ package %w[ if node[:tile][:database][:external_data_script] execute node[:tile][:database][:external_data_script] do - command node[:tile][:database][:external_data_script] + command "#{node[:tile][:database][:external_data_script]} -R www-data" cwd "/srv/tile.openstreetmap.org" user "tile" group "tile" end - - Array(node[:tile][:database][:external_data_tables]).each do |table| - postgresql_table table do - cluster node[:tile][:database][:cluster] - database "gis" - owner "tile" - permissions "tile" => :all, "www-data" => :select - end - end end postgresql_munin "gis" do