3 # DO NOT EDIT - This file is being maintained by Chef
5 # Send output to the log
6 exec >> /var/log/nominatim/update.log 2>&1
8 # Change to Nominatim directory
9 DIR="$( cd "$( dirname "$0" )" && pwd )"
16 ./utils/update.php --no-npi --import-osmosis
18 # will trigger recompilation if necessary
20 echo "WARNING: git update failed."
23 # sleep a bit if updates take less than a minute
25 elapsed=$((endtime - starttime))
26 if [[ $elapsed -lt 60 ]]
28 sleepy=$((60 - $elapsed))
29 echo "Sleeping for ${sleepy}s..."