Files
mirror-to-gitea/docker-entrypoint.sh
2024-11-09 17:09:38 +01:00

20 lines
298 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/dist/index.js
case $SINGLE_RUN in
(TRUE | true | 1) break;;
esac
echo "Waiting for ${DELAY} seconds..."
sleep "${DELAY}"
done