mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 重构
parent
3a3d460081
commit
17f76bb557
|
@ -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 这里判断每次安装的内容
|
||||
|
|
Loading…
Reference in New Issue