X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c3f9cf702ba600099b52905299f9551301c39b60..3ae5b9b4fbb5a637df5a9e8138cd421e0c6e74e7:/cookbooks/nominatim/templates/default/updater.erb?ds=sidebyside diff --git a/cookbooks/nominatim/templates/default/updater.erb b/cookbooks/nominatim/templates/default/updater.erb index acadc9a02..2f75b4199 100644 --- a/cookbooks/nominatim/templates/default/updater.erb +++ b/cookbooks/nominatim/templates/default/updater.erb @@ -15,9 +15,11 @@ do ./utils/update.php --no-npi --import-osmosis - # will trigger recompilation if necessary - if ! git pull; then - echo "WARNING: git update failed." + 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