Skip to content

Commit

Permalink
Automatically update BT trackers regularly
Browse files Browse the repository at this point in the history
  • Loading branch information
P3TERX committed Apr 13, 2020
1 parent 371aadf commit 6b5bc25
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 1 deletion.
Empty file modified root/etc/cont-finish.d/kill-aria2c
100644 → 100755
Empty file.
6 changes: 5 additions & 1 deletion root/etc/cont-init.d/08-aria2_conf
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,13 @@ done

[[ -e aria2.session ]] || touch aria2.session

[[ "$TRACKERS" = "no" ]] ||
if [[ "$TRACKERS" = "no" ]]; then
crontab -ru p3terx
else
bash <(
curl -fsSL https://p3terx.github.io/aria2.conf/tracker.sh ||
curl -fsSL https://cdn.jsdelivr.net/gh/P3TERX/aria2.conf/tracker.sh ||
curl -fsSL https://gh.p3terx.workers.dev/aria2.conf/master/tracker.sh
)
fi
exit 0
Empty file modified root/etc/cont-init.d/18-rclone
100644 → 100755
Empty file.
Empty file modified root/etc/cont-init.d/28-fix
100644 → 100755
Empty file.
Empty file modified root/etc/cont-init.d/58-permissions
100644 → 100755
Empty file.
Empty file modified root/etc/cont-init.d/88-aria2-pro
100644 → 100755
Empty file.
19 changes: 19 additions & 0 deletions root/etc/crontabs/p3terx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#=================================================
# _ _ ____ ____
# / \ _ __(_) __ _|___ \ | _ \ _ __ ___
# / _ \ | '__| |/ _` | __) | | |_) | '__/ _ \
# / ___ \| | | | (_| |/ __/ | __/| | | (_) |
# /_/ \_\_| |_|\__,_|_____| |_| |_| \___/
#
# https://github.com/P3TERX/docker-aria2-pro
# Description: A perfect Aria2 Docker image
# Lisence: MIT
# Author: P3TERX
# Blog: https://p3terx.com (chinese)
#=================================================
SHELL=/bin/bash
0 7 * * * bash <(\
curl -fsSL https://p3terx.github.io/aria2.conf/tracker.sh || \
curl -fsSL https://cdn.jsdelivr.net/gh/P3TERX/aria2.conf/tracker.sh || \
curl -fsSL https://gh.p3terx.workers.dev/aria2.conf/master/tracker.sh\
) '/config/aria2.conf' RPC 2>&1 | tee /config/tracker.log
Empty file modified root/etc/services.d/aria2/finish
100644 → 100755
Empty file.
Empty file modified root/etc/services.d/aria2/run
100644 → 100755
Empty file.

0 comments on commit 6b5bc25

Please sign in to comment.