标签:自动更新 root 服务 The update tps bin track span
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" /root/.aria2/aria2.conf`" ]; then sed -i ‘$a bt-tracker=‘${list} /root/.aria2/aria2.conf echo add...... else sed -i "s@bt-tracker.*@bt-tracker=$list@g" /root/.aria2/aria2.conf echo update...... fi
#授权脚本 chmod +x /root/trackers-list-aria2.sh
标签:自动更新 root 服务 The update tps bin track span
原文地址:https://www.cnblogs.com/yangjig/p/10023388.html