From: Sarah Hoffmann Date: Fri, 12 Feb 2021 20:24:54 +0000 (+0100) Subject: nominatim: also download us postcode data X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/bdd6d4fbb325191ae5d0a836460949b7a10908a1 nominatim: also download us postcode data Also put external data into build directory as per new project layouts. --- diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index 78717add8..7af64c90f 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -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"