From 67d127b2015844994d04abac3cb13efda43b65d1 Mon Sep 17 00:00:00 2001 From: balchen Date: Fri, 22 Jul 2022 13:33:07 +0200 Subject: [PATCH] =?UTF-8?q?Use=20tile=20expiration=20settings=20from=20env?= =?UTF-8?q?=20if=20set,=20or=20default=20values=20as=20be=E2=80=A6=20(#296?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Use tile expiration settings from env if set, or default values as before. * Update openstreetmap-tiles-update-expire.sh Co-authored-by: galewis2 <62433564+galewis2@users.noreply.github.com> --- 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..e64c150 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/"}