mirror of https://github.com/wulabing/Xray_onekey
完善部分菜单功能
parent
14aabf6c8e
commit
0db5d5ab27
16
install.sh
16
install.sh
|
@ -37,6 +37,7 @@ nginx_systemd_file="/lib/systemd/system/nginx.service"
|
|||
v2ray_systemd_file="/etc/systemd/system/v2ray.service"
|
||||
v2ray_access_log="/var/log/v2ray/access.log"
|
||||
v2ray_error_log="/var/log/v2ray/error.log"
|
||||
amce_sh_file="/root/.acme.sh/acme.sh"
|
||||
nginx_version="1.16.1"
|
||||
openssl_version="1.1.1d"
|
||||
|
||||
|
@ -587,6 +588,12 @@ show_access_log(){
|
|||
show_error_log(){
|
||||
[ -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(){
|
||||
[[ -f $nginx_systemd_file ]] && rm -f $nginx_systemd_file
|
||||
[[ -f $v2ray_systemd_file ]] && rm -f $v2ray_systemd_file
|
||||
|
@ -641,7 +648,7 @@ list(){
|
|||
acme_cron_update
|
||||
;;
|
||||
boost)
|
||||
bash <(curl -L -s "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh")
|
||||
bbr_boost_sh
|
||||
;;
|
||||
*)
|
||||
menu
|
||||
|
@ -698,12 +705,15 @@ menu(){
|
|||
show_error_log
|
||||
;;
|
||||
8)
|
||||
bash <(curl -L -s "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh")
|
||||
bbr_boost_sh
|
||||
;;
|
||||
9)
|
||||
uninstall_all
|
||||
ssl_update_manuel
|
||||
;;
|
||||
10)
|
||||
uninstall_all
|
||||
;;
|
||||
111)
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in New Issue