File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ FROM ubuntu:22.04 AS final
3434ENV DEBIAN_FRONTEND=noninteractive
3535ENV AUTOVACUUM=on
3636ENV UPDATES=disabled
37+ ENV REPLICATION_URL=https://planet.openstreetmap.org/replication/hour/
38+ ENV MAX_INTERVAL_SECONDS=3600
39+
3740RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
3841
3942# Get packages
Original file line number Diff line number Diff line change @@ -61,10 +61,6 @@ EXPIRY_TOUCHFROM=${EXPIRY_TOUCHFROM:="13"}
6161EXPIRY_DELETEFROM=${EXPIRY_DELETEFROM:= " 19" }
6262EXPIRY_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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments