完善部分菜单功能

pull/355/head
wulabing 2019-12-23 18:03:46 +08:00
parent 14aabf6c8e
commit 0db5d5ab27
1 changed files with 25 additions and 15 deletions

View File

@ -37,6 +37,7 @@ nginx_systemd_file="/lib/systemd/system/nginx.service"
v2ray_systemd_file="/etc/systemd/system/v2ray.service" v2ray_systemd_file="/etc/systemd/system/v2ray.service"
v2ray_access_log="/var/log/v2ray/access.log" v2ray_access_log="/var/log/v2ray/access.log"
v2ray_error_log="/var/log/v2ray/error.log" v2ray_error_log="/var/log/v2ray/error.log"
amce_sh_file="/root/.acme.sh/acme.sh"
nginx_version="1.16.1" nginx_version="1.16.1"
openssl_version="1.1.1d" openssl_version="1.1.1d"
@ -587,6 +588,12 @@ show_access_log(){
show_error_log(){ show_error_log(){
[ -f ${v2ray_error_log} ] && tail -f ${v2ray_error_log} || echo -e "${RedBG}log文件不存在${Font}" [ -f ${v2ray_error_log} ] && tail -f ${v2ray_error_log} || echo -e "${RedBG}log文件不存在${Font}"
} }
ssl_update_manuel(){
[ -f ${amce_sh_file} ] && "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" || echo -e "${RedBG}证书签发工具不存在${Font}"
}
bbr_boost_sh(){
bash <(curl -L -s "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh")
}
uninstall_all(){ uninstall_all(){
[[ -f $nginx_systemd_file ]] && rm -f $nginx_systemd_file [[ -f $nginx_systemd_file ]] && rm -f $nginx_systemd_file
[[ -f $v2ray_systemd_file ]] && rm -f $v2ray_systemd_file [[ -f $v2ray_systemd_file ]] && rm -f $v2ray_systemd_file
@ -641,7 +648,7 @@ list(){
acme_cron_update acme_cron_update
;; ;;
boost) boost)
bash <(curl -L -s "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh") bbr_boost_sh
;; ;;
*) *)
menu menu
@ -698,12 +705,15 @@ menu(){
show_error_log show_error_log
;; ;;
8) 8)
bash <(curl -L -s "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh") bbr_boost_sh
;; ;;
9) 9)
uninstall_all ssl_update_manuel
;; ;;
10) 10)
uninstall_all
;;
111)
exit 0 exit 0
;; ;;
*) *)