Skip to content

Commit

Permalink
fix(脚本): 修复使用脚本安装后,宝塔异常关闭问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mack-a committed Jan 13, 2025
1 parent f50114c commit 6105ac8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ readInstallProtocolType() {
xrayVLESSRealityXHTTPort=
xrayVLESSRealityXHTTPServerName=

# currentRealityXHTTPPrivateKey=
# currentRealityXHTTPPrivateKey=
currentRealityXHTTPPublicKey=

currentRealityPrivateKey=
Expand Down Expand Up @@ -461,7 +461,7 @@ readInstallProtocolType() {
xrayVLESSRealityXHTTPServerName=$(jq -r .inbounds[0].streamSettings.realitySettings.serverNames[0] "${row}.json")

currentRealityXHTTPPublicKey=$(jq -r .inbounds[0].streamSettings.realitySettings.publicKey "${row}.json")
# currentRealityXHTTPPrivateKey=$(jq -r .inbounds[0].streamSettings.realitySettings.privateKey "${row}.json")
# currentRealityXHTTPPrivateKey=$(jq -r .inbounds[0].streamSettings.realitySettings.privateKey "${row}.json")

# if [[ "${coreInstallType}" == "2" ]]; then
# frontingType=03_VLESS_WS_inbounds
Expand Down Expand Up @@ -2136,7 +2136,8 @@ handleNginx() {
systemctl stop nginx
fi
sleep 0.5
if [[ -n $(pgrep -f "nginx") ]]; then

if [[ -z ${btDomain} && -n $(pgrep -f "nginx") ]]; then
pgrep -f "nginx" | xargs kill -9
fi
echoContent green " ---> Nginx关闭成功"
Expand Down Expand Up @@ -9737,7 +9738,7 @@ menu() {
cd "$HOME" || exit
echoContent red "\n=============================================================="
echoContent green "作者:mack-a"
echoContent green "当前版本:v3.3.30"
echoContent green "当前版本:v3.3.31"
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus
Expand Down

0 comments on commit 6105ac8

Please sign in to comment.