]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: add nominatim tool to global path
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 28 Jun 2022 08:03:10 +0000 (10:03 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 28 Jun 2022 08:03:10 +0000 (10:03 +0200)
cookbooks/nominatim/recipes/default.rb
cookbooks/nominatim/templates/default/git-post-merge-hook.erb

index 30b2a20d760be5373e455e58a49569da30e32051..09ff3ff959f5c0618ad07a66ac53e34be15b7178 100644 (file)
@@ -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"
index 92ff6af95bf6e0be3214163ff265181920db2dd8..df72efefbd404b6df5040735afa10d0e4bcaa059 100644 (file)
@@ -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