Update run.sh

This commit is contained in:
galewis2 2021-12-14 16:24:45 -05:00 committed by GitHub
parent 8750c004b3
commit 1421c963b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
run.sh
View File

@ -62,7 +62,7 @@ if [ "$1" = "import" ]; then
if [ "${UPDATES:-}" = "enabled" ]; then if [ "${UPDATES:-}" = "enabled" ]; then
# determine and set osmosis_replication_timestamp (for consecutive updates) # determine and set osmosis_replication_timestamp (for consecutive updates)
osmium fileinfo /data.osm.pbf > /var/lib/mod_tile/data.osm.pbf.info osmium fileinfo /data.osm.pbf > /var/lib/mod_tile/data.osm.pbf.info
osmium fileinfo /data.osm.pbf | grep 'osmosis_replication_timestamp=' | cut -b35-44 > /var/lib/mod_tile/replication_timestamp.txt osmium fileinfo --get=header.option.timestamp /data.osm.pbf > /var/lib/mod_tile/replication_timestamp.txt
REPLICATION_TIMESTAMP=$(cat /var/lib/mod_tile/replication_timestamp.txt) REPLICATION_TIMESTAMP=$(cat /var/lib/mod_tile/replication_timestamp.txt)
# initial setup of osmosis workspace (for consecutive updates) # initial setup of osmosis workspace (for consecutive updates)