+ INST=2
+ else
+ INST=1
+ fi
+
+ ./utils/update.php --import-osmosis --index-instances $INST
+
+<% 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 -%>
+
+ if [ -f "<%= @update_maintenance_trigger %>" ]; then
+ rm <%= @update_maintenance_trigger %>
+ ./utils/update.php --calculate-postcodes