Merge pull request #1188 from apernet/fix-scripts-selinux-detect

fix(scripts): detect selinux with getenforce
This commit is contained in:
Haruue
2024-08-21 18:27:25 +08:00
committed by GitHub

View File

@@ -465,7 +465,7 @@ check_environment_systemd() {
}
check_environment_selinux() {
if ! has_command chcon; then
if ! has_command getenforce; then
return
fi