Skip to content

Commit

Permalink
feat(脚本): 完善宝塔环境下安装xray-core reality
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizard89 committed May 14, 2024
1 parent c2773dc commit 7461d26
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,10 @@ checkBTPanel() {
ln -s "/www/server/panel/vhost/cert/${btDomain}/privkey.pem" "/etc/v2ray-agent/tls/${btDomain}.key"
fi

nginxStaticPath="/www/wwwroot/${btDomain}/"
nginxStaticPath="/www/wwwroot/${btDomain}/html/"

mkdir -p "/www/wwwroot/${btDomain}/html/"

if [[ -f "/www/wwwroot/${btDomain}/.user.ini" ]]; then
chattr -i "/www/wwwroot/${btDomain}/.user.ini"
fi
Expand Down Expand Up @@ -5550,6 +5553,7 @@ unInstall() {
menu
exit 0
fi
checkBTPanel
echoContent yellow " ---> 脚本不会删除acme相关配置,删除请手动执行 [rm -rf /root/.acme.sh]"
handleNginx stop
if [[ -z $(pgrep -f "nginx") ]]; then
Expand Down Expand Up @@ -7757,7 +7761,9 @@ customXrayInstall() {
if [[ -n "${btDomain}" ]]; then
echoContent skyBlue "\n进度 3/${totalProgress} : 检测到宝塔面板/1Panel,跳过申请TLS步骤"
handleXray stop
customPortFunction
if [[ "${selectCustomInstallType}" != ",7," ]]; then
customPortFunction
fi
else
# 申请tls
if [[ "${selectCustomInstallType}" != ",7," ]]; then
Expand Down Expand Up @@ -8850,7 +8856,14 @@ initRealityClientServersName() {
if [[ "${realityServerNameCurrentDomainStatus}" == "y" ]]; then
realityServerName="${domain}"
if [[ "${selectCoreType}" == "1" ]]; then
realityDomainPort="${port}"
if [[ -n "${port}" ]]; then
realityDomainPort="${port}"
elif [[ -z "${subscribePort}" ]]; then
echo
installSubscribe
readNginxSubscribe
realityDomainPort="${subscribePort}"
fi
fi

if [[ "${selectCoreType}" == "2" && -z "${subscribePort}" ]]; then
Expand Down Expand Up @@ -9188,7 +9201,7 @@ menu() {
echoContent red "\n=============================================================="
echoContent green "原作者:mack-a"
echoContent green "作者:Wizard89"
echoContent green "当前版本:v3.0.50"
echoContent green "当前版本:v3.0.51"
echoContent green "Github:https://github.com/Wizard89/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus
Expand Down

0 comments on commit 7461d26

Please sign in to comment.