anchor.diff:  do
       # Send output to the log (logrotatable)
       exec >> <%= @logfile %> 2>&1
  -    starttime=`date +%s`
   
       current_load=`cat /proc/loadavg | cut -f 2 -d ' ' | sed 's:\..*::'`
   
  
positive.code:     fi
      popd
  <% end -%>
  
      # sleep a bit if updates take less than a minute
      endtime=`date +%s`
      elapsed=$((endtime - starttime))
      if [[ $elapsed -lt 60 ]]
      then
          sleepy=$((60 - $elapsed))
          echo "Sleeping for ${sleepy}s..."
          sleep $sleepy
      fi
  done
  
negative.code:         INST=1
      fi
  
      ./utils/update.php --import-osmosis --index-instances $INST
  
  <% if node[:nominatim][:enable_git_updates] -%>
      pushd <%= @srcdir %>
  