]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/updater.erb
nominatim: add boost-python for pyosmium
[chef.git] / cookbooks / nominatim / templates / default / updater.erb
index 5c5a4448b5f6898e7ca99e628d24bb8abbd18d1d..bf9a001013884305f39fe46fd9bbec6f6c809c16 100644 (file)
@@ -13,12 +13,16 @@ do
 
     ./utils/update.php --no-npi --import-osmosis
 
+<% if node[:nominatim][:enable_git_updates] -%>
+    pushd <%= @srcdir %>
     if git fetch origin; then
       # will trigger recompilation if necessary
       git merge origin/<%= @branch %>
     else
       echo "WARNING: git fetch failed."
     fi
+    popd
+<% end -%>
 
     # sleep a bit if updates take less than a minute
     endtime=`date +%s`