mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Use ps instead of pgrep on AIX
This commit is contained in:
parent
1a1d736fa7
commit
08ecd91180
1 changed files with 2 additions and 1 deletions
|
|
@ -1284,7 +1284,8 @@
|
|||
|
||||
if [ -z "${search}" ]; then ExitFatal "Missing process to search for when using IsRunning function"; fi
|
||||
RUNNING=0
|
||||
if [ ! -z "${PGREPBINARY}" ]; then
|
||||
# AIX does not fully support pgrep options, so using ps instead
|
||||
if [ ! -z "${PGREPBINARY}" -a ! "${OS}" = "AIX" ]; then
|
||||
FIND=$(${PGREPBINARY} ${pgrep_options} "${search}" | ${TRBINARY} '\n' ' ')
|
||||
else
|
||||
if [ -z "${PSOPTIONS}" ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue