From: Sarah Hoffmann Date: Tue, 28 Jun 2022 08:03:10 +0000 (+0200) Subject: nominatim: add nominatim tool to global path X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/a6d849291aa8917180380836508aa9b981f50782 nominatim: add nominatim tool to global path --- diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index 30b2a20d7..09ff3ff95 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -215,6 +215,10 @@ execute "compile_nominatim" do command "cmake #{source_directory} && make" end +link "/usr/local/bin/nominatim" do + to "#{build_directory}/nominatim" +end + template "#{source_directory}/.git/hooks/post-merge" do source "git-post-merge-hook.erb" owner "nominatim" diff --git a/cookbooks/nominatim/templates/default/git-post-merge-hook.erb b/cookbooks/nominatim/templates/default/git-post-merge-hook.erb index 92ff6af95..df72efefb 100644 --- a/cookbooks/nominatim/templates/default/git-post-merge-hook.erb +++ b/cookbooks/nominatim/templates/default/git-post-merge-hook.erb @@ -13,6 +13,6 @@ make psql -d <%= @dbname %> -c "SELECT version();" >/dev/null 2>&1 if [[ "$?" == "0" ]]; then - ./nominatim admin --migrate - ./nominatim refresh --functions --address-levels --website + nominatim admin --migrate + nominatim refresh --functions --address-levels --website fi