2019-03-09 12:47:07 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2023-02-03 23:19:20 +00:00
|
|
|
# Get custom delay, else use 3600 seconds
|
|
|
|
DELAY="${DELAY:-3600}"
|
2019-03-09 12:47:07 +00:00
|
|
|
|
|
|
|
while true
|
|
|
|
do
|
2023-02-03 23:19:20 +00:00
|
|
|
echo "Starting to create mirrors..."
|
2019-03-09 12:47:07 +00:00
|
|
|
node /app/src/index.js
|
|
|
|
|
2023-02-03 23:19:20 +00:00
|
|
|
echo "Waiting for ${DELAY} seconds..."
|
|
|
|
sleep "${DELAY}"
|
2019-03-09 12:47:07 +00:00
|
|
|
done
|