From c3f9cf702ba600099b52905299f9551301c39b60 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 26 Aug 2013 16:49:47 +0200 Subject: [PATCH] make git updates non-fatal --- cookbooks/nominatim/templates/default/updater.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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` -- 2.39.5