This commit is contained in:
Lilith Ashley Nyx Arson 🔥 2024-11-03 23:22:27 +01:00
parent 1583ae4997
commit efa355ddb9
Signed by: lilith
SSH key fingerprint: SHA256:LAjgsAMyT3LO2JVtr6fQ4N3RTYoRRlIm5wAKsbDife4
2 changed files with 2 additions and 9 deletions

View file

@ -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

View file

@ -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