mirror-to-gitea/docker-entrypoint.sh

16 lines
237 B
Bash
Executable File

#!/usr/bin/env sh
set -e
# Get custom delay, else use 3600 seconds
DELAY="${DELAY:-3600}"
while true
do
echo "Starting to create mirrors..."
node /app/src/index.js
echo "Waiting for ${DELAY} seconds..."
sleep "${DELAY}"
done