From f81d17d31cc646fa4b60d73414113daa28524171 Mon Sep 17 00:00:00 2001 From: Nelson Dane Date: Fri, 3 Feb 2023 18:19:20 -0500 Subject: [PATCH] Add variable delay time --- docker-entrypoint.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index fb92f34..bcf471b 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,13 +2,14 @@ set -e -ONE_HOUR_DELAY=3600 +# Get custom delay, else use 3600 seconds +DELAY="${DELAY:-3600}" while true do - echo 'Starting to create mirrors' + echo "Starting to create mirrors..." node /app/src/index.js - echo 'Waiting...' - sleep "${ONE_HOUR_DELAY}" + echo "Waiting for ${DELAY} seconds..." + sleep "${DELAY}" done