From 3170a4e5fad476203cb61bdb52dc16b721f20df2 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Wed, 10 May 2023 16:16:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=AF=81=E4=B9=A6=E6=97=B6=E9=97=B4=E6=A3=80=E6=9F=A5=E3=80=81?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0centos=20selinux=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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