Skip to content

Commit e50e4ee

Browse files
authored
fix(脚本): 修复singbox展示订阅不全问题
1 parent 60e1c09 commit e50e4ee

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

install.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,7 @@ updateSELinuxHTTPPortT() {
20642064
# 操作Nginx
20652065
handleNginx() {
20662066

2067-
if [[ -z $(pgrep -f "nginx") ]] && [[ "$1" == "start" ]]; then
2067+
if ! echo "${selectCustomInstallType}" | grep -qwE ",7,|,8,|,7,8," && [[ -z $(pgrep -f "nginx") ]] && [[ "$1" == "start" ]]; then
20682068
if [[ "${release}" == "alpine" ]]; then
20692069
rc-service nginx start 2>/etc/v2ray-agent/nginx_error.log
20702070
else
@@ -5884,7 +5884,8 @@ unInstall() {
58845884
rm -rf /etc/v2ray-agent
58855885
rm -rf ${nginxConfigPath}alone.conf
58865886
rm -rf ${nginxConfigPath}checkPortOpen.conf >/dev/null 2>&1
5887-
rm -rf ${nginxConfigPath}subscribe.conf >/dev/null 2>&1
5887+
unInstallSubscribe
5888+
# rm -rf ${nginxConfigPath}subscribe.conf >/dev/null 2>&1
58885889

58895890
if [[ -d "${nginxStaticPath}" && -f "${nginxStaticPath}/check" ]]; then
58905891
rm -rf "${nginxStaticPath}*"
@@ -8049,6 +8050,7 @@ customSingBoxInstall() {
80498050
handleSingBox start
80508051
# 生成账号
80518052
checkGFWStatue 8
8053+
unInstallSubscribe
80528054
showAccounts 9
80538055
else
80548056
echoContent red " ---> 输入不合法"
@@ -8148,6 +8150,7 @@ customXrayInstall() {
81488150
handleXray start
81498151
# 生成账号
81508152
checkGFWStatue 11
8153+
unInstallSubscribe
81518154
showAccounts 12
81528155
else
81538156
echoContent red " ---> 输入不合法"
@@ -8226,6 +8229,7 @@ xrayCoreInstall() {
82268229
handleNginx start
82278230
# 生成账号
82288231
checkGFWStatue 11
8232+
unInstallSubscribe
82298233
showAccounts 12
82308234
}
82318235

@@ -8265,9 +8269,8 @@ singBoxInstall() {
82658269
handleSingBox stop
82668270
sleep 2
82678271
handleSingBox start
8268-
8272+
unInstallSubscribe
82698273
# 生成账号
8270-
# checkGFWStatue 12
82718274
showAccounts 9
82728275
}
82738276

@@ -8946,7 +8949,7 @@ subscribe() {
89468949

89478950
echoContent skyBlue "-------------------------备注---------------------------------"
89488951
echoContent yellow "# 查看订阅会重新生成本地账号的订阅"
8949-
# echoContent yellow "# 添加账号或者修改账号需要重新查看订阅才会重新生成对外访问的订阅内容"
8952+
# echoContent yellow "# 添加账号或者修改账号需要重新查看订阅才会重新生成对外访问的订阅内容"
89508953
echoContent red "# 需要手动输入md5加密的salt值,如果不了解使用随机即可"
89518954
echoContent yellow "# 不影响已添加的远程订阅的内容\n"
89528955

@@ -9396,6 +9399,7 @@ xrayCoreRealityInstall() {
93969399
sleep 2
93979400
# 启动
93989401
handleXray start
9402+
unInstallSubscribe
93999403
# 生成账号
94009404
showAccounts 8
94019405
}
@@ -9627,7 +9631,7 @@ menu() {
96279631
echoContent red "\n=============================================================="
96289632
echoContent green "原作者:mack-a"
96299633
echoContent green "作者:Wizard89"
9630-
echoContent green "当前版本:v3.1.14"
9634+
echoContent green "当前版本:v3.1.15"
96319635
echoContent green "Github:https://github.com/Wizard89/v2ray-agent"
96329636
echoContent green "描述:八合一共存脚本\c"
96339637
showInstallStatus

0 commit comments

Comments
 (0)