diff --git a/nodes/orchestration/package/open-appsec-ctl.sh b/nodes/orchestration/package/open-appsec-ctl.sh index 5f10a08..6e5adec 100644 --- a/nodes/orchestration/package/open-appsec-ctl.sh +++ b/nodes/orchestration/package/open-appsec-ctl.sh @@ -1028,7 +1028,7 @@ run_status() # Initials - rs print_single_service_status "$service" done - if command -v getenforce &>/dev/null && [ "$(getenforce)" != "Disabled" ]; then + if command -v getenforce >/dev/null 2>&1 && [ "$(getenforce)" != "Disabled" ]; then echo "SELinux has been detected, which could potentially disrupt the agent's normal operation." fi }