X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/6131b08d957d6808a57ba6647e5e60a057ee1e5a..e73a63acc674039222809ccfc21e73a17199b8af:/cookbooks/nominatim/templates/default/updater.erb diff --git a/cookbooks/nominatim/templates/default/updater.erb b/cookbooks/nominatim/templates/default/updater.erb index 2f75b4199..d8c9666ce 100644 --- a/cookbooks/nominatim/templates/default/updater.erb +++ b/cookbooks/nominatim/templates/default/updater.erb @@ -2,15 +2,14 @@ # DO NOT EDIT - This file is being maintained by Chef -# Send output to the log -exec >> /var/log/nominatim/update.log 2>&1 - # Change to Nominatim directory DIR="$( cd "$( dirname "$0" )" && pwd )" cd $DIR/.. -while true +while [ ! -f "<%= @update_stop_file %>" ] do + # Send output to the log (logrotatable) + exec >> <%= node[:nominatim][:logdir] %>/update.log 2>&1 starttime=`date +%s` ./utils/update.php --no-npi --import-osmosis