mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-07 21:09:52 +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:
parent
4c04660684
commit
00df1cab0f
@ -465,7 +465,7 @@ check_environment_systemd() {
|
||||
}
|
||||
|
||||
check_environment_selinux() {
|
||||
if ! has_command chcon; then
|
||||
if ! has_command getenforce; then
|
||||
return
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user