]> git.openstreetmap.org Git - chef.git/blob - cookbooks/nominatim/templates/default/nominatim-daily-maintenance.erb
otrs: use correct cluster port
[chef.git] / cookbooks / nominatim / templates / default / nominatim-daily-maintenance.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 nominatim refresh --postcodes --word-tokens --threads 4 -v
4
5 <% if node[:nominatim][:enable_qa_tiles] -%>
6 pushd <%= @qabindir %>
7 if python3 cli.py --execute-all; then
8   rm -rf "<%= @qadatadir %>/old"
9   if [ -d "<%= @qadatadir %>/current" ]; then
10     mv "<%= @qadatadir %>/current" "<%= @qadatadir %>/old"
11   fi
12   mv "<%= @qadatadir %>/new" "<%= @qadatadir %>/current"
13 fi
14 popd
15 <% end -%>