diff --git a/Dockerfile b/Dockerfile index 3a4fda0..634af94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,10 @@ FROM alpine:latest -ENV TORRENTLIST=https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt +ENV TORRENTLIST=https://tr.incest.world/trackers.txt RUN apk add --update bash transmission-remote curl coreutils && \ rm -rf /var/cache/apk/* -COPY trackers.txt /opt/trackers.txt COPY tracker-add-auto.sh /opt/tracker-add-auto.sh USER guest diff --git a/tracker-add-auto.sh b/tracker-add-auto.sh index 32f184d..ef9796d 100755 --- a/tracker-add-auto.sh +++ b/tracker-add-auto.sh @@ -23,13 +23,7 @@ add_trackers() { while true; do if [ ! -f /tmp/trackers.txt ] || [[ $(find "/tmp/trackers.txt" -mtime +1 -print) ]]; then - for base_url in "$TORRENTLIST"; do - curl -so "/tmp/trackers.txt" "${base_url}" - - if [ -f /opt/trackers.txt ]; then - cat /opt/trackers.txt >>/tmp/trackers.txt - fi - done + curl -so "/tmp/trackers.txt" "$TORRENTLIST" fi # Get list of active torrents