X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b42a65b6a027b6b22c60080f1c112a93dc042ce3..b4dee5010807e90cf177bfbd3e3bbbf51cf33fbe:/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 -%>