Add variable delay time

pull/1/head
Nelson Dane 2023-02-03 18:19:20 -05:00
parent 210813da8d
commit f81d17d31c
1 changed files with 5 additions and 4 deletions

View File

@ -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