From 00df1cab0f0c121a99a54ef5077d302ed49651c7 Mon Sep 17 00:00:00 2001 From: Haruue Date: Wed, 21 Aug 2024 18:18:41 +0800 Subject: [PATCH] fix(scripts): detect selinux with getenforce chcon is widely available in coreutils, even if the system doesn't support selinux. --- scripts/install_server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_server.sh b/scripts/install_server.sh index d222f33d6c..0c85dc7f22 100644 --- a/scripts/install_server.sh +++ b/scripts/install_server.sh @@ -465,7 +465,7 @@ check_environment_systemd() { } check_environment_selinux() { - if ! has_command chcon; then + if ! has_command getenforce; then return fi