From: Sarah Hoffmann Date: Mon, 26 Aug 2013 14:49:47 +0000 (+0200) Subject: make git updates non-fatal X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/c3f9cf702ba600099b52905299f9551301c39b60 make git updates non-fatal --- diff --git a/cookbooks/nominatim/templates/default/updater.erb b/cookbooks/nominatim/templates/default/updater.erb index c0a0ad49b..acadc9a02 100644 --- a/cookbooks/nominatim/templates/default/updater.erb +++ b/cookbooks/nominatim/templates/default/updater.erb @@ -16,7 +16,9 @@ do ./utils/update.php --no-npi --import-osmosis # will trigger recompilation if necessary - git pull + if ! git pull; then + echo "WARNING: git update failed." + fi # sleep a bit if updates take less than a minute endtime=`date +%s`