X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/827477f709bcc1a8449b6c07b39509fe050c1077..54817d1f97d837a7b740c805661388a03b8ffe22:/cookbooks/nominatim/templates/default/nominatim-update-refresh-db.erb diff --git a/cookbooks/nominatim/templates/default/nominatim-update-refresh-db.erb b/cookbooks/nominatim/templates/default/nominatim-update-refresh-db.erb index 6d7b41596..ff70bea45 100644 --- a/cookbooks/nominatim/templates/default/nominatim-update-refresh-db.erb +++ b/cookbooks/nominatim/templates/default/nominatim-update-refresh-db.erb @@ -6,7 +6,12 @@ date "+%c === Refresh database after software updates" cd <%= @projectdir %> +<% if node.platform?("debian") -%> +<%= @venvprefix %>nominatim admin --migrate +<%= @venvprefix %>nominatim refresh --functions --address-levels +<% else -%> # Run the migrations from the nominatim version in the build directory, # so they can execute while the frontend doesn't have the new code yet. <%= @builddir %>/nominatim admin --migrate <%= @builddir %>/nominatim refresh --functions --address-levels --website +<% end -%>