mirror of
https://github.com/Laborratte5/linux-iso-seeder.git
synced 2025-12-30 17:08:17 +01:00
16 lines
439 B
Bash
16 lines
439 B
Bash
#!/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
|