Skip to content

Commit

Permalink
脚本优化
Browse files Browse the repository at this point in the history
  • Loading branch information
helloxz committed May 1, 2020
1 parent 227fcb3 commit faae5ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dccaa
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ filebrowser_pid=$(pgrep 'filebrowser')

#设置aria2密码
function pass(){
sed -ir "s/rpc-secret=.*/rpc-secret=$1/g" /etc/ccaa/aria2.conf
sed -ir "s/rpc-secret=.*/rpc-secret=$PASS/g" /etc/ccaa/aria2.conf
}

#启动ccaa
Expand Down
5 changes: 3 additions & 2 deletions docker-ccaa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ function setting(){
#替换filebrowser读取路径
sed -i "s%ccaaDown%${downpath}%g" /etc/ccaa/config.json
#替换AriaNg服务器链接
sed -i "s/server_ip/${osip}/g" /etc/ccaa/AriaNg/index.html

#sed -i "s/server_ip/${osip}/g" /etc/ccaa/AriaNg/index.html
rm -rf /etc/ccaa/AriaNg/index.html
mv /etc/ccaa/AriaNg/dindex.html /etc/ccaa/AriaNg/index.html
#更新tracker
sh /etc/ccaa/upbt.sh

Expand Down

0 comments on commit faae5ca

Please sign in to comment.