X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fa701fc119f67c4c7626ac07f2e081f249106305..a8e08a1c4cb78c7af95b8d498a4f120b7967388c:/cookbooks/nominatim/templates/default/nominatim-update.erb diff --git a/cookbooks/nominatim/templates/default/nominatim-update.erb b/cookbooks/nominatim/templates/default/nominatim-update.erb index 9f122206c..145ae6a8c 100644 --- a/cookbooks/nominatim/templates/default/nominatim-update.erb +++ b/cookbooks/nominatim/templates/default/nominatim-update.erb @@ -8,13 +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 ! /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 -%>