aria2自动更新BT Tracker服务器列表脚本
vi /root/trackers-list-aria2.sh 内容如下:
#!/bin/bash #/usr/sbin/service aria2 stop list=`wget -qO- https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt|awk NF|sed ":a;N;s/\n/,/g;ta"` if [ -z "`grep "bt-tracker" /conf/aria2.conf`" ]; then sed -i \'$a bt-tracker=\'${list} /conf/aria2.conf echo add...... else sed -i "s@bt-tracker.*@bt-tracker=$list@g" /conf/aria2.conf echo update...... fi
#授权脚本 chmod +x /root/trackers-list-aria2.sh
版权声明:本文为yangjig原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。