Skip to content

Commit 25a661e

Browse files
authored
Actually allow modifying the replication URL (#297)
1 parent 67d127b commit 25a661e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ FROM ubuntu:22.04 AS final
3434
ENV DEBIAN_FRONTEND=noninteractive
3535
ENV AUTOVACUUM=on
3636
ENV UPDATES=disabled
37+
ENV REPLICATION_URL=https://planet.openstreetmap.org/replication/hour/
38+
ENV MAX_INTERVAL_SECONDS=3600
39+
3740
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
3841

3942
# Get packages

openstreetmap-tiles-update-expire.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ EXPIRY_TOUCHFROM=${EXPIRY_TOUCHFROM:="13"}
6161
EXPIRY_DELETEFROM=${EXPIRY_DELETEFROM:="19"}
6262
EXPIRY_MAXZOOM=${EXPIRY_MAXZOOM:="20"}
6363

64-
65-
REPLICATION_URL=${REPLICATION_URL:="https://planet.openstreetmap.org/replication/hour/"}
66-
MAX_INTERVAL_SECONDS=${MAX_INTERVAL_SECONDS:="3600"}
67-
6864
#*************************************************************************
6965
#*************************************************************************
7066

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if [ "$1" == "import" ]; then
8181
REPLICATION_TIMESTAMP=`osmium fileinfo -g header.option.osmosis_replication_timestamp /data/region.osm.pbf`
8282

8383
# initial setup of osmosis workspace (for consecutive updates)
84-
sudo -u renderer openstreetmap-tiles-update-expire.sh $REPLICATION_TIMESTAMP
84+
sudo -E -u renderer openstreetmap-tiles-update-expire.sh $REPLICATION_TIMESTAMP
8585
fi
8686

8787
# copy polygon file if available

0 commit comments

Comments
 (0)