X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/20470a64f04ff1fc122fc5b214c9fc44b364bcee..4687a5bf9faa00f2ff3a14545cdd58a65a65ab8d:/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