]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/updater.erb
Bump cookstyle from 7.21.0 to 7.22.3
[chef.git] / cookbooks / nominatim / templates / default / updater.erb
index d5ba2e0bec89e9653b881f3819c76c7017f3b9b4..cfa5de79b60e4d4eb127dbde9ae6bd41dd6a76c0 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 %>
@@ -34,4 +34,9 @@ do
     fi
     popd
 <% end -%>
+
+    if [ -f "<%= @update_maintenance_trigger %>" ]; then
+        rm <%= @update_maintenance_trigger %>
+        ./nominatim refresh --postcodes --threads 4 -v
+    fi
 done