- # Did we get any new data?
- if [ "${sequenceNumber}" == "${prevSequenceNumber}" ]
- then
- # Log the lack of data
- echo "No new data available. Sleeping..."
+ # Apply the changes to the database
+ osm2pgsql --database gis --slim --append --number-processes=1 \
+<% if node[:tile][:node_file] -%>
+ --flat-nodes=<%= node[:tile][:node_file] %> \
+<% end -%>
+<% if node[:tile][:styles][:default][:revision] >= "v4.0.0" -%>
+ --multi-geometry --hstore \
+ --style=/srv/tile.openstreetmap.org/styles/default/openstreetmap-carto.style \
+ --tag-transform-script=/srv/tile.openstreetmap.org/styles/default/openstreetmap-carto.lua \
+<% end -%>
+ ${file}