mirror of https://github.com/CISOfy/lynis.git
Merge pull request #1048 from konstruktoid/pgrep
require pgrep before usage
This commit is contained in:
commit
4aeb244789
|
@ -1547,8 +1547,7 @@
|
||||||
|
|
||||||
if [ -z "${search}" ]; then ExitFatal "Missing process to search for when using IsRunning function"; fi
|
if [ -z "${search}" ]; then ExitFatal "Missing process to search for when using IsRunning function"; fi
|
||||||
RUNNING=0
|
RUNNING=0
|
||||||
# AIX does not fully support pgrep options, so using ps instead
|
if [ -x "${PGREPBINARY}" ] && [ "${OS}" != "AIX" ]; then
|
||||||
if [ "${OS}" != "AIX" ]; then
|
|
||||||
# When --user is used, perform a search using the -u option
|
# When --user is used, perform a search using the -u option
|
||||||
# Initialize users for strict mode
|
# Initialize users for strict mode
|
||||||
if [ -n "${users:-}" ]; then
|
if [ -n "${users:-}" ]; then
|
||||||
|
|
Loading…
Reference in New Issue