Skip to content

Commit

Permalink
fix(scripts): detect selinux with getenforce
Browse files Browse the repository at this point in the history
chcon is widely available in coreutils, even if the system doesn't
support selinux.
  • Loading branch information
haruue committed Aug 21, 2024
1 parent 4c04660 commit 00df1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ check_environment_systemd() {
}

check_environment_selinux() {
if ! has_command chcon; then
if ! has_command getenforce; then
return
fi

Expand Down

0 comments on commit 00df1ca

Please sign in to comment.