X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/f667d26c54fa043489d1f37b9617f937cfb04bfc..6131b08d957d6808a57ba6647e5e60a057ee1e5a:/cookbooks/nominatim/templates/default/updater.erb diff --git a/cookbooks/nominatim/templates/default/updater.erb b/cookbooks/nominatim/templates/default/updater.erb index 7443297e8..2f75b4199 100644 --- a/cookbooks/nominatim/templates/default/updater.erb +++ b/cookbooks/nominatim/templates/default/updater.erb @@ -3,7 +3,7 @@ # DO NOT EDIT - This file is being maintained by Chef # Send output to the log -exec > /var/log/nominatim/update.log 2>&1 +exec >> /var/log/nominatim/update.log 2>&1 # Change to Nominatim directory DIR="$( cd "$( dirname "$0" )" && pwd )" @@ -15,8 +15,12 @@ do ./utils/update.php --no-npi --import-osmosis - # will trigger recompilation if necessary - git pull + if git fetch origin; then + # will trigger recompilation if necessary + git merge origin/master + else + echo "WARNING: git fetch failed." + fi # sleep a bit if updates take less than a minute endtime=`date +%s`