diff --git a/setup.sh b/setup.sh index 1e4787f..39e32c9 100755 --- a/setup.sh +++ b/setup.sh @@ -418,7 +418,8 @@ check_selinux() { return 0 fi - if [ -eq "$(getenforce)" "Enforcing" ]; then + # Check if getenforce is returning Enforcing + if [ "$(getenforce)" = "Enforcing" ]; then log_warning "SELinux is enabled. Adjusting SELinux to permissive mode..." sudo setenforce Permissive || die "Failed to disable SELinux" tee /etc/selinux/config <