X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/cd61b458c9d289347eddfee79700289fc8b18080..d16f3d1a7f01a40ad821948956a21d26fdcab32b:/cookbooks/nominatim/templates/default/nominatim-update.erb?ds=sidebyside diff --git a/cookbooks/nominatim/templates/default/nominatim-update.erb b/cookbooks/nominatim/templates/default/nominatim-update.erb index 6bff200e1..145ae6a8c 100644 --- a/cookbooks/nominatim/templates/default/nominatim-update.erb +++ b/cookbooks/nominatim/templates/default/nominatim-update.erb @@ -8,16 +8,18 @@ starttime=`date +%s` <% if node[:nominatim][:enable_git_updates] -%> if /sbin/runuser -u nominatim -- <%= @bindir %>/nominatim-update-source; then - pushd <%= @builddir %> - make install -<% if node[:nominatim][:api_flavour] == "python" -%> - systemctl reload nominatim -<% end -%> if ! /sbin/runuser -u nominatim -- <%= @bindir %>/nominatim-update-refresh-db; then date "+%c === Database refresh failed. Stopping updates." exit 1 fi + + pushd <%= @builddir %> + make install + +<% if node[:nominatim][:api_flavour] == "python" -%> + systemctl reload nominatim +<% end -%> fi <% end -%>