From bbd3198976e87e2fa0f7ee3aeb1c263ee37bf6fc Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Wed, 15 Jan 2025 11:47:12 +0100 Subject: [PATCH] fix SELinux check to correctly identify Non-NixOS systems --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index c60b5b9..1e4787f 100755 --- a/setup.sh +++ b/setup.sh @@ -414,10 +414,10 @@ warning_prompt() { check_selinux() { # Only on Non-NixOS based systems - if ! command -v nixos-version >/dev/null 2>&1; then + if command -v nixos-version >/dev/null 2>&1; then return 0 fi - + if [ -eq "$(getenforce)" "Enforcing" ]; then log_warning "SELinux is enabled. Adjusting SELinux to permissive mode..." sudo setenforce Permissive || die "Failed to disable SELinux"