diff --git a/setup.sh b/setup.sh index 3ae04cf..5abc41b 100755 --- a/setup.sh +++ b/setup.sh @@ -229,6 +229,12 @@ check_selinux() { return 0 fi + # Check if getenforce exists, if not it means we don't have SELinux + if ! command -v getenforce >/dev/null 2>&1; then + log_success "SELinux not found. Skipping..." + return 0 + fi + # Check if getenforce is returning Enforcing if [ "$(getenforce)" = "Enforcing" ]; then log_warning "SELinux is enabled. Adjusting SELinux to permissive mode..."