# 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
./utils/update.php --no-npi --import-osmosis
+ pushd <%= @srcdir %>
if git fetch origin; then
# will trigger recompilation if necessary
git merge origin/<%= @branch %>
else
echo "WARNING: git fetch failed."
fi
+ popd
# sleep a bit if updates take less than a minute
endtime=`date +%s`