Create entrypoint.sh

This commit is contained in:
Kasper Plougmann 2025-07-08 12:25:28 +02:00 committed by GitHub
parent 2cf64d120a
commit efa44eee86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

16
entrypoint.sh Normal file
View file

@ -0,0 +1,16 @@
#!/bin/sh
echo "Starting linux-iso-seeder container"
# Update packages and transmission-daemon to latest
apk update
apk upgrade transmission-daemon
# Start torrent fetcher script in background, running daily
while true; do
python3 /usr/local/bin/fetch_torrents.py
sleep 86400 # 24 hours
done &
# Start transmission-daemon
exec transmission-daemon --foreground --config-dir /config --download-dir /downloads --watch-dir /watch