mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-08-09 19:01:47 +00:00
fix(scripts): detect selinux with getenforce
chcon is widely available in coreutils, even if the system doesn't support selinux.
This commit is contained in:
@@ -465,7 +465,7 @@ check_environment_systemd() {
|
||||
}
|
||||
|
||||
check_environment_selinux() {
|
||||
if ! has_command chcon; then
|
||||
if ! has_command getenforce; then
|
||||
return
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user