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
21 # sleep a bit if updates take less than a minute
23 elapsed=$((endtime - starttime))
24 if [[ $elapsed -lt 60 ]]
26 sleepy=$((60 - $elapsed))
27 echo "Sleeping for ${sleepy}s..."