From 21b409863e37cfcb5d5269c3c2fd4e2a54199ea9 Mon Sep 17 00:00:00 2001 From: galewis2 <62433564+galewis2@users.noreply.github.com> Date: Fri, 15 Jul 2022 08:19:46 -0400 Subject: [PATCH] Simplify parsing of timestamp (#294) --- run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 40e3b65..25ad24a 100755 --- a/run.sh +++ b/run.sh @@ -78,7 +78,7 @@ if [ "$1" == "import" ]; then if [ "${UPDATES:-}" == "enabled" ] || [ "${UPDATES:-}" == "1" ]; then # determine and set osmosis_replication_timestamp (for consecutive updates) - REPLICATION_TIMESTAMP=`osmium fileinfo /data/region.osm.pbf | grep 'osmosis_replication_timestamp=' | cut -d "=" -f 2` + REPLICATION_TIMESTAMP=`osmium fileinfo -g header.option.osmosis_replication_timestamp /data/region.osm.pbf` # initial setup of osmosis workspace (for consecutive updates) sudo -u renderer openstreetmap-tiles-update-expire.sh $REPLICATION_TIMESTAMP