]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/updater.erb
nominatim: disable automatic code updates on dulcy
[chef.git] / cookbooks / nominatim / templates / default / updater.erb
index 8a3cf027edf4f2549a835e300d8e5d566afc8c49..bf9a001013884305f39fe46fd9bbec6f6c809c16 100644 (file)
@@ -13,6 +13,7 @@ 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
@@ -21,6 +22,7 @@ do
       echo "WARNING: git fetch failed."
     fi
     popd
+<% end -%>
 
     # sleep a bit if updates take less than a minute
     endtime=`date +%s`