]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/updater.erb
nominatim: run updates from build dir
[chef.git] / cookbooks / nominatim / templates / default / updater.erb
index d839e6bb49aae685349dee18c40cc0b2d71c9d1c..5c5a4448b5f6898e7ca99e628d24bb8abbd18d1d 100644 (file)
@@ -3,13 +3,12 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
 # Change to Nominatim directory
-DIR="$( cd "$( dirname "$0" )" && pwd )"
-cd $DIR/..
+cd <%= @bindir %>
 
 while [ ! -f "<%= @update_stop_file %>" ]
 do
     # Send output to the log (logrotatable)
-    exec >> <%= @logfile %>/update.log 2>&1
+    exec >> <%= @logfile %> 2>&1
     starttime=`date +%s`
 
     ./utils/update.php --no-npi --import-osmosis