X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/20470a64f04ff1fc122fc5b214c9fc44b364bcee..56d96508993293278dfd1ee741c39e5ea880f2b3:/cookbooks/nominatim/templates/default/updater.erb diff --git a/cookbooks/nominatim/templates/default/updater.erb b/cookbooks/nominatim/templates/default/updater.erb index beea8c8ac..d8c9666ce 100644 --- a/cookbooks/nominatim/templates/default/updater.erb +++ b/cookbooks/nominatim/templates/default/updater.erb @@ -6,10 +6,10 @@ DIR="$( cd "$( dirname "$0" )" && pwd )" cd $DIR/.. -while true +while [ ! -f "<%= @update_stop_file %>" ] do # Send output to the log (logrotatable) - exec >> /var/log/nominatim/update.log 2>&1 + exec >> <%= node[:nominatim][:logdir] %>/update.log 2>&1 starttime=`date +%s` ./utils/update.php --no-npi --import-osmosis