g
This commit is contained in:
parent
1583ae4997
commit
efa355ddb9
2 changed files with 2 additions and 9 deletions
|
@ -1,11 +1,10 @@
|
||||||
FROM alpine:latest
|
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 && \
|
RUN apk add --update bash transmission-remote curl coreutils && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
COPY trackers.txt /opt/trackers.txt
|
|
||||||
COPY tracker-add-auto.sh /opt/tracker-add-auto.sh
|
COPY tracker-add-auto.sh /opt/tracker-add-auto.sh
|
||||||
|
|
||||||
USER guest
|
USER guest
|
||||||
|
|
|
@ -23,13 +23,7 @@ add_trackers() {
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
if [ ! -f /tmp/trackers.txt ] || [[ $(find "/tmp/trackers.txt" -mtime +1 -print) ]]; then
|
if [ ! -f /tmp/trackers.txt ] || [[ $(find "/tmp/trackers.txt" -mtime +1 -print) ]]; then
|
||||||
for base_url in "$TORRENTLIST"; do
|
curl -so "/tmp/trackers.txt" "$TORRENTLIST"
|
||||||
curl -so "/tmp/trackers.txt" "${base_url}"
|
|
||||||
|
|
||||||
if [ -f /opt/trackers.txt ]; then
|
|
||||||
cat /opt/trackers.txt >>/tmp/trackers.txt
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get list of active torrents
|
# Get list of active torrents
|
||||||
|
|
Loading…
Add table
Reference in a new issue