]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: also download us postcode data
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 12 Feb 2021 20:24:54 +0000 (21:24 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 12 Feb 2021 20:24:54 +0000 (21:24 +0100)
Also put external data into build directory as per new project
layouts.

cookbooks/nominatim/recipes/default.rb

index 78717add8df28e243b1ea4b43a3981e221f28769..7af64c90fae1432705102a0cb86e3be40d1fbd45 100644 (file)
@@ -259,11 +259,12 @@ end
 
 external_data = [
   "wikimedia-importance.sql.gz",
-  "gb_postcode_data.sql.gz"
+  "gb_postcode_data.sql.gz",
+  "us_postcode_data.sql.gz"
 ]
 
 external_data.each do |fname|
-  remote_file "#{source_directory}/data/#{fname}" do
+  remote_file "#{build_directory}/#{fname}" do
     action :create_if_missing
     source "https://www.nominatim.org/data/#{fname}"
     owner "nominatim"