X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7bfe48c72692a8a218ab5c222d88830c6cd04ea0..b42a65b6a027b6b22c60080f1c112a93dc042ce3:/cookbooks/nominatim/templates/default/nominatim-update-refresh-db.erb?ds=sidebyside diff --git a/cookbooks/nominatim/templates/default/nominatim-update-refresh-db.erb b/cookbooks/nominatim/templates/default/nominatim-update-refresh-db.erb index f3de24347..6d7b41596 100644 --- a/cookbooks/nominatim/templates/default/nominatim-update-refresh-db.erb +++ b/cookbooks/nominatim/templates/default/nominatim-update-refresh-db.erb @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e # DO NOT EDIT - This file is being maintained by Chef @@ -6,5 +6,7 @@ date "+%c === Refresh database after software updates" cd <%= @projectdir %> -nominatim admin --migrate -nominatim refresh --functions --address-levels --website +# 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