add torrentlist to env
This commit is contained in:
parent
e53eaf6e26
commit
4f04af9ef7
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
FROM alpine:latest
|
||||
|
||||
ENV TORRENTLIST=https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt
|
||||
|
||||
COPY ./tracker-add-auto.sh /opt/tracker-add-auto.sh
|
||||
|
||||
RUN apk add --update \
|
||||
|
|
|
@ -5,7 +5,7 @@ sleep 25
|
|||
add_trackers () {
|
||||
torrent_hash=$1
|
||||
id=$2
|
||||
for base_url in https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt ; do
|
||||
for base_url in "$TORRENTLIST" ; do
|
||||
echo "URL for ${base_url}"
|
||||
echo "Adding trackers for $torrent_name..."
|
||||
for tracker in $(curl -# "${base_url}") ; do
|
||||
|
|
Loading…
Add table
Reference in a new issue