refactor: fix SELinux check to verify directory existence instead of file
All checks were successful
Nix Format Check / check-format (push) Successful in 37s
All checks were successful
Nix Format Check / check-format (push) Successful in 37s
This commit is contained in:
parent
c1700f42dd
commit
766c90a5ba
2
setup.sh
2
setup.sh
@ -240,7 +240,7 @@ warning_prompt() {
|
|||||||
|
|
||||||
check_selinux() {
|
check_selinux() {
|
||||||
# Check if distro has SELinux at all:
|
# Check if distro has SELinux at all:
|
||||||
if [ ! -f /etc/selinux ]; then
|
if [ ! -d /etc/selinux ]; then
|
||||||
log_success "SELinux not found. Skipping..."
|
log_success "SELinux not found. Skipping..."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user