mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-03 20:47:38 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ check_environment_systemd() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check_environment_selinux() {
|
check_environment_selinux() {
|
||||||
if ! has_command chcon; then
|
if ! has_command getenforce; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue