diff --git a/install.sh b/install.sh index 1b41649..80620af 100644 --- a/install.sh +++ b/install.sh @@ -32,6 +32,15 @@ echoContent() { ;; esac } +# 检查SELinux状态 +checkCentosSELinux() { + if [[ -f "/etc/selinux/config" ]] && ! grep -q "SELINUX=disabled" <"/etc/selinux/config"; then + echoContent yellow "# 注意事项" + echoContent yellow "检测到SELinux已开启,请手动关闭,教程如下" + echoContent yellow "https://www.v2ray-agent.com/archives/1679931532764#heading-8 " + exit 0 + fi +} checkSystem() { if [[ -n $(find /etc -name "redhat-release") ]] || grep