mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 修复全部安装查看帐号时不展示trojan的问题
parent
46f82d6e2f
commit
b1f996b864
11
install.sh
11
install.sh
|
@ -229,15 +229,18 @@ readInstallProtocolType() {
|
||||||
if echo ${row} | grep -q VMess_WS_inbounds; then
|
if echo ${row} | grep -q VMess_WS_inbounds; then
|
||||||
currentInstallProtocolType=${currentInstallProtocolType}'3'
|
currentInstallProtocolType=${currentInstallProtocolType}'3'
|
||||||
fi
|
fi
|
||||||
|
if echo ${row} | grep -q trojan_TCP_inbounds; then
|
||||||
|
currentInstallProtocolType=${currentInstallProtocolType}'4'
|
||||||
|
fi
|
||||||
if echo ${row} | grep -q VLESS_gRPC_inbounds; then
|
if echo ${row} | grep -q VLESS_gRPC_inbounds; then
|
||||||
currentInstallProtocolType=${currentInstallProtocolType}'5'
|
currentInstallProtocolType=${currentInstallProtocolType}'5'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done < <(ls ${configPath} | grep inbounds.json | awk -F "[.]" '{print $1}')
|
done < <(ls ${configPath} | grep inbounds.json | awk -F "[.]" '{print $1}')
|
||||||
|
|
||||||
if [[ -f "/etc/v2ray-agent/trojan/trojan-go" ]] && [[ -f "/etc/v2ray-agent/trojan/config_full.json" ]]; then
|
# if [[ -f "/etc/v2ray-agent/trojan/trojan-go" ]] && [[ -f "/etc/v2ray-agent/trojan/config_full.json" ]]; then
|
||||||
currentInstallProtocolType=${currentInstallProtocolType}'4'
|
# currentInstallProtocolType=${currentInstallProtocolType}'4'
|
||||||
fi
|
# fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# 检查文件目录以及path路径
|
# 检查文件目录以及path路径
|
||||||
|
@ -4047,7 +4050,7 @@ menu() {
|
||||||
cd "$HOME" || exit
|
cd "$HOME" || exit
|
||||||
echoContent red "\n=============================================================="
|
echoContent red "\n=============================================================="
|
||||||
echoContent green "作者:mack-a"
|
echoContent green "作者:mack-a"
|
||||||
echoContent green "当前版本:v2.5.10-dev_remove_trojan-go"
|
echoContent green "当前版本:v2.5.10-dev_remove_trojan-go_1"
|
||||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:八合一共存脚本\c"
|
echoContent green "描述:八合一共存脚本\c"
|
||||||
showInstallStatus
|
showInstallStatus
|
||||||
|
|
Loading…
Reference in New Issue