]> git.openstreetmap.org Git - chef.git/blob - cookbooks/overpass/templates/default/overpass-update-areas.erb
overpass: workaround blank pyosmium-get-changes diff-type default
[chef.git] / cookbooks / overpass / templates / default / overpass-update-areas.erb
1 #!/bin/bash
2
3 echo "`date '+%F %T'`: update started"
4
5 if [[ -a <%= @basedir %>/db/area_version ]]; then
6   sed "s/{{area_version}}/$(cat <%= @basedir %>/db/area_version)/g" <%= @srcdir %>/rules/areas_delta.osm3s | <%= @basedir %>/bin/osm3s_query --progress --rules
7 else
8   cat <%= @srcdir %>/rules/areas.osm3s | <%= @basedir %>/bin/osm3s_query --progress --rules
9 fi
10
11 echo "`date '+%F %T'`: update finished"