Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
helloxz committed Feb 27, 2020
1 parent a39cdad commit 6152b67
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions ccaa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export PATH
function setout(){
if [ -e "/usr/bin/yum" ]
then
yum -y install curl gcc gcc+ make bzip2
yum -y install curl gcc gcc+ make bzip2 gzip
else
#更新软件,否则可能make命令无法安装
sudo apt-get update
Expand Down Expand Up @@ -170,26 +170,23 @@ function setting(){
}
#清理工作
function cleanup(){
rm -rf *.zip
rm -rf *.gz
rm -rf *.txt
rm -rf aria2-1.34*
cd
rm -rf ccaa_tmp
#rm -rf *.conf
rm -rf init
#rm -rf init
}

#卸载
function uninstall(){
#停止所有服务
kill -9 $(pgrep 'aria2c')
kill -9 $(pgrep 'caddy')

#删除服务
#systemctl disable caddy.service
#rm -rf /lib/systemd/system/caddy.service
#删除文件
rm -rf /etc/ccaa
rm -rf /usr/sbin/caddy
rm -rf /usr/sbin/ccaa_web
rm -rf /usr/sbin/ccaa
rm -rf /usr/bin/aria2c
rm -rf aria2-1.*
Expand Down Expand Up @@ -219,7 +216,7 @@ case $istype in
install_aria2 && \
install_file_browser && \
dealconf && \
chk_firewall || \
chk_firewall && \
setting && \
cleanup
;;
Expand Down

0 comments on commit 6152b67

Please sign in to comment.