X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fa701fc119f67c4c7626ac07f2e081f249106305..b7c12630cb9de017d76fe60ff296534d6d061399:/cookbooks/nominatim/templates/default/nominatim-daily-maintenance.erb diff --git a/cookbooks/nominatim/templates/default/nominatim-daily-maintenance.erb b/cookbooks/nominatim/templates/default/nominatim-daily-maintenance.erb index 837f4af4d..60fe84bec 100644 --- a/cookbooks/nominatim/templates/default/nominatim-daily-maintenance.erb +++ b/cookbooks/nominatim/templates/default/nominatim-daily-maintenance.erb @@ -1,10 +1,15 @@ # DO NOT EDIT - This file is being maintained by Chef -nominatim refresh --postcodes --word-tokens --threads 4 -v +cd <%= @projectdir %> + +<%= @venvprefix %>nominatim refresh --postcodes --word-tokens --threads 4 -v +<%= @venvprefix %>nominatim admin --clean-deleted '1 month' + +psql -q -d <%= node[:nominatim][:dbname] %> -c 'VACUUM ANALYSE search_name' <% if node[:nominatim][:enable_qa_tiles] -%> pushd <%= @qabindir %> -if python3 cli.py --execute-all; then +if <%= @venvprefix %>nominatim-data-analyser --execute-all --config=<%= @projectdir %>/qa-config.yaml; then rm -rf "<%= @qadatadir %>/old" if [ -d "<%= @qadatadir %>/current" ]; then mv "<%= @qadatadir %>/current" "<%= @qadatadir %>/old"