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
commit 903666f18e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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