]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: switch to using nominatim tool
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 30 Jan 2021 15:51:11 +0000 (16:51 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 30 Jan 2021 16:05:47 +0000 (16:05 +0000)
cookbooks/nominatim/templates/default/git-post-merge-hook.erb
cookbooks/nominatim/templates/default/updater.erb

index 9c20abaca0f13cad279ccda0a5687d09cb5ee7b2..fc806f1b484408701ddfc89a0d36dd12bb97aea4 100644 (file)
@@ -13,7 +13,5 @@ make
 
 psql -d <%= @dbname %> -c "SELECT version();" >/dev/null 2>&1
 if [[ "$?" == "0" ]]; then
-  ./utils/setup.php --create-functions --create-partition-functions --enable-diff-updates
-  ./utils/setup.php --setup-website
-  ./utils/update.php --update-address-levels
+  ./nominatim refresh --functions --address-levels --website
 fi
index ade5845aa6fda850f5d16801cef83c1afb012d3e..37cf8937291828771e9012f789a84cd791ee04da 100644 (file)
@@ -17,12 +17,12 @@ do
 
     if [[ $current_load -lt $num_cpus ]]
     then
-        INST=2
+        INST=4
     else
-        INST=1
+        INST=2
     fi
 
-    ./utils/update.php --import-osmosis --index-instances $INST
+    ./nominatim replication --once --threads $INST
 
 <% if node[:nominatim][:enable_git_updates] -%>
     pushd <%= @srcdir %>
@@ -37,6 +37,6 @@ do
 
     if [ -f "<%= @update_maintenance_trigger %>" ]; then
         rm <%= @update_maintenance_trigger %>
-        ./utils/update.php --calculate-postcodes
+        ./nominatim refresh --postcodes
     fi
 done