feat(脚本): 重构

pull/534/merge
mack-a 2020-08-18 16:22:06 +08:00
parent 3a3d460081
commit 17f76bb557
1 changed files with 9 additions and 8 deletions

View File

@ -271,7 +271,7 @@ installTLS(){
cp -R /etc/nginx/v2ray-agent-https/config /etc/v2ray-agent/tls/config
cp -R /etc/nginx/v2ray-agent-https/${domain}.crt /etc/v2ray-agent/tls/${domain}.crt
cp -R /etc/nginx/v2ray-agent-https/$1.key /etc/v2ray-agent/tls/${domain}.key
cp -R /etc/nginx/v2ray-agent-https/${domain}.key /etc/v2ray-agent/tls/${domain}.key
progressTools "yellow" " TLS证书备份成功证书位置/etc/v2ray-agent/tls--->"
elif [[ -z `cat /etc/v2ray-agent/tls/${domain}.crt` ]] || [[ -z `cat /etc/v2ray-agent/tls/${domain}.key` ]]
then
@ -321,6 +321,7 @@ cat << EOF > /etc/nginx/conf.d/alone.conf
}
}
EOF
elif [[ "${installType}" = "vlessTCP" ]]
then
echo vlessTCP
@ -973,8 +974,8 @@ menu(){
echoContent yellow "5.安装BBR" "no"
echoContent yellow "6.卸载脚本" "no"
echoContent red "=============================================================="
installTools
read -p "请选择:"
installV2RayWSSNginxWeb
exit 0;
# ===============
# todo 这里判断每次安装的内容