From 4a7410ab9e5c0bcc38b6114306c103f9e768a7a3 Mon Sep 17 00:00:00 2001 From: Jens Glad Balchen Date: Thu, 21 Jul 2022 00:18:25 +0200 Subject: [PATCH] Use tile expiration settings from env if set, or default values as before. --- openstreetmap-tiles-update-expire.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openstreetmap-tiles-update-expire.sh b/openstreetmap-tiles-update-expire.sh index 970a68d..e4a3fe7 100755 --- a/openstreetmap-tiles-update-expire.sh +++ b/openstreetmap-tiles-update-expire.sh @@ -56,10 +56,10 @@ RUNLOG=$LOG_DIR/run.log # Here we expire (but don't immediately rerender) tiles between zoom levels # 13 and 18 and delete between 19 and 20. #------------------------------------------------------------------------------ -EXPIRY_MINZOOM=13 -EXPIRY_TOUCHFROM=13 -EXPIRY_DELETEFROM=19 -EXPIRY_MAXZOOM=20 +EXPIRY_MINZOOM=${EXPIRY_MINZOOM:="13} +EXPIRY_TOUCHFROM=${EXPIRY_TOUCHFROM:="13"} +EXPIRY_DELETEFROM=${EXPIRY_DELETEFROM:="19"} +EXPIRY_MAXZOOM=${EXPIRY_MAXZOOM:="20"} REPLICATION_URL=${REPLICATION_URL:="https://planet.openstreetmap.org/replication/hour/"}