Update sing-box.sh

This commit is contained in:
eooce
2024-08-26 21:20:22 +08:00
committed by GitHub
parent 87caf3f902
commit ee344ade83
+2 -2
View File
@@ -44,7 +44,7 @@ fi
check_argo() {
if [ -f "${work_dir}/argo" ]; then
if [ -f /etc/alpine-release ]; then
rc-service nginx status | grep -q "stoped" && yellow "not running" && return 1 || green "running" && return 0
rc-service argo status | grep -q "started" && green "running" && return 0 || yellow "not running" && return 1
else
[ "$(systemctl is-active argo)" = "active" ] && green "running" && return 0 || yellow "not running" && return 1
fi
@@ -58,7 +58,7 @@ fi
check_nginx() {
if command -v nginx &>/dev/null; then
if [ -f /etc/alpine-release ]; then
rc-service nginx status | grep -q "started" && green "running" && return 0 || yellow "not running" && return 1
rc-service nginx status | grep -q "stoped" && yellow "not running" && return 1 || green "running" && return 0
else
[ "$(systemctl is-active nginx)" = "active" ] && green "running" && return 0 || yellow "not running" && return 1
fi