mirror of
https://github.com/Laborratte5/linux-iso-seeder.git
synced 2025-12-30 17:08:17 +01:00
Create entrypoint.sh
This commit is contained in:
parent
2cf64d120a
commit
efa44eee86
1 changed files with 16 additions and 0 deletions
16
entrypoint.sh
Normal file
16
entrypoint.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue