Add variable delay time
parent
210813da8d
commit
f81d17d31c
|
@ -2,13 +2,14 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
ONE_HOUR_DELAY=3600
|
# Get custom delay, else use 3600 seconds
|
||||||
|
DELAY="${DELAY:-3600}"
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
echo 'Starting to create mirrors'
|
echo "Starting to create mirrors..."
|
||||||
node /app/src/index.js
|
node /app/src/index.js
|
||||||
|
|
||||||
echo 'Waiting...'
|
echo "Waiting for ${DELAY} seconds..."
|
||||||
sleep "${ONE_HOUR_DELAY}"
|
sleep "${DELAY}"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue