mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
Fix getenforce redirection
This commit is contained in:
parent
ee2c098995
commit
102a0308c2
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user