X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/dca9aff59c1ecd82f2f17c1a91b5eebed19700f7..90e8109a883d6bbae266acf94a90b54526b3d443:/cookbooks/nominatim/templates/default/updater.erb?ds=sidebyside diff --git a/cookbooks/nominatim/templates/default/updater.erb b/cookbooks/nominatim/templates/default/updater.erb index 37cf89372..d3fd0d937 100644 --- a/cookbooks/nominatim/templates/default/updater.erb +++ b/cookbooks/nominatim/templates/default/updater.erb @@ -37,6 +37,17 @@ do if [ -f "<%= @update_maintenance_trigger %>" ]; then rm <%= @update_maintenance_trigger %> - ./nominatim refresh --postcodes + ./nominatim refresh --postcodes --threads 4 -v +<% if node[:nominatim][:enable_qa_tiles] -%> + pushd <%= @qabindir %> + if python3 cli.py --execute-all; then + rm -rf "<%= @qadatadir %>/old" + if [ -d "<%= @qadatadir %>/current" ]; then + mv "<%= @qadatadir %>/current" "<%= @qadatadir %>/old" + fi + mv "<%= @qadatadir %>/new" "<%= @qadatadir %>/current" + fi + popd +<% end -%> fi done