From e01bee31b311a9bdc6937ba0c29be77e4ecaad77 Mon Sep 17 00:00:00 2001 From: Allen Zhong Date: Mon, 24 May 2021 17:08:33 +0800 Subject: [PATCH] cluster: fix wrong SELINUX disabling config --- pkg/cluster/manager/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/manager/check.go b/pkg/cluster/manager/check.go index 8f0dda95a0..49a6d71ca1 100644 --- a/pkg/cluster/manager/check.go +++ b/pkg/cluster/manager/check.go @@ -493,7 +493,7 @@ func fixFailedChecks(host string, res *operator.CheckResult, t *task.Builder) (s case operator.CheckNameSELinux: t.Shell(host, fmt.Sprintf( - "sed -i 's/^[[:blank:]]*SELINUX=enforcing/SELINUX=no/g' %s && %s", + "sed -i 's/^[[:blank:]]*SELINUX=enforcing/SELINUX=disabled/g' %s && %s", "/etc/selinux/config", "setenforce 0", ),