X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a6f0a90f05a91a3724c31184c056fd868dc94dce..6769f06b626d566508eaa96a9892d05aeb331f24:/cookbooks/nominatim/templates/default/updater.erb diff --git a/cookbooks/nominatim/templates/default/updater.erb b/cookbooks/nominatim/templates/default/updater.erb index d5ba2e0be..cfa5de79b 100644 --- a/cookbooks/nominatim/templates/default/updater.erb +++ b/cookbooks/nominatim/templates/default/updater.erb @@ -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