]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/nominatim-update-refresh-db.erb
Disable collection of bgwriter statistics for postgres 17
[chef.git] / cookbooks / nominatim / templates / default / nominatim-update-refresh-db.erb
index 6d7b415962d53fbd87dc4646884118141208995d..ff70bea457a4814a657a5b7d3111f48d5f14750f 100644 (file)
@@ -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 -%>