feat(脚本): 优化展示、优化提示语

pull/534/merge
mack-a 2021-04-09 17:12:16 +08:00
parent ac62857933
commit 70a311fb50
1 changed files with 9 additions and 8 deletions

View File

@ -216,16 +216,16 @@ showInstallStatus() {
if [[ -n "${coreInstallType}" ]]; then if [[ -n "${coreInstallType}" ]]; then
if [[ "${coreInstallType}" == 1 ]]; then if [[ "${coreInstallType}" == 1 ]]; then
if [[ -n $(pgrep -f xray/xray) ]]; then if [[ -n $(pgrep -f xray/xray) ]]; then
echoContent yellow "核心Xray-core[运行中]" echoContent yellow "\n核心Xray-core[运行中]"
else else
echoContent yellow "核心Xray-core[未运行]" echoContent yellow "\n核心Xray-core[未运行]"
fi fi
elif [[ "${coreInstallType}" == 2 || "${coreInstallType}" == 3 ]]; then elif [[ "${coreInstallType}" == 2 || "${coreInstallType}" == 3 ]]; then
if [[ -n $(pgrep -f v2ray/v2ray) ]]; then if [[ -n $(pgrep -f v2ray/v2ray) ]]; then
echoContent yellow "核心v2ray-core[运行中]" echoContent yellow "\n核心v2ray-core[运行中]"
else else
echoContent yellow "核心v2ray-core[未运行]" echoContent yellow "\n核心v2ray-core[未运行]"
fi fi
fi fi
# 读取协议类型 # 读取协议类型
@ -255,7 +255,7 @@ showInstallStatus() {
fi fi
if echo ${currentInstallProtocolType} | grep -q 4; then if echo ${currentInstallProtocolType} | grep -q 4; then
echoContent yellow "Trojan+TCP/WS[TLS]" echoContent yellow "Trojan+TCP/WS[TLS]\c"
fi fi
fi fi
} }
@ -732,7 +732,8 @@ handleNginx() {
nginx nginx
sleep 0.5 sleep 0.5
if ! ps -ef | grep -v grep | grep -q nginx; then if ! ps -ef | grep -v grep | grep -q nginx; then
echoContent red " ---> Nginx启动失败请检查日志" echoContent red " ---> Nginx启动失败"
echoContent red " ---> 请手动尝试安装nginx后再次执行脚本"
exit 0 exit 0
fi fi
elif [[ "$1" == "stop" ]] && [[ -n $(pgrep -f "nginx") ]]; then elif [[ "$1" == "stop" ]] && [[ -n $(pgrep -f "nginx") ]]; then
@ -3549,9 +3550,9 @@ menu() {
echoContent green "作者mack-a" echoContent green "作者mack-a"
echoContent green "当前版本v2.4.11" echoContent green "当前版本v2.4.11"
echoContent green "Githubhttps://github.com/mack-a/v2ray-agent" echoContent green "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:七合一共存脚本" echoContent green "描述:七合一共存脚本\c"
showInstallStatus showInstallStatus
echoContent red "==============================================================" echoContent red "\n=============================================================="
if [[ -n "${coreInstallType}" ]]; then if [[ -n "${coreInstallType}" ]]; then
echoContent yellow "1.重新安装" echoContent yellow "1.重新安装"
else else