@@ -21,7 +21,7 @@ function ccaa_start(){
nohup aria2c --conf-path=/etc/ccaa/aria2.conf > /var/log/aria2.log 2>&1 &
nohup /usr/sbin/ccaa_web > /var/log/ccaa_web.log 2>&1 &
nohup filebrowser -c /etc/ccaa/config.json > /var/log/fbrun.log 2>&1 &
- exit
+ sleep 1
}
case $1 in
@@ -143,9 +143,9 @@ echo "1) 安装CCAA"
echo "2) 卸载CCAA"
echo "3) 更新bt-tracker"
echo "q) 退出!"
-read -p ":" istype
-case $istype in
- 1)
+#read -p ":" istype
+case $1 in
+ 'install')
check
setout
install_aria2 && \
@@ -154,13 +154,13 @@ case $istype in
setting && \
cleanup
;;
- 2)
+ 'uninstall')
uninstall
- 3)
+ 'upbt')
sh /etc/ccaa/upbt.sh
- q)
+ 'q')
exit
*) echo '参数错误!'