mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-25 14:54:32 +02:00
Code enhancement
This commit is contained in:
parent
499f7d5015
commit
11f81345ee
@ -312,8 +312,7 @@
|
|||||||
Register --test-no HTTP-6702 --weight L --network NO --category security --description "Check nginx process"
|
Register --test-no HTTP-6702 --weight L --network NO --category security --description "Check nginx process"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
LogText "Test: searching running nginx process"
|
LogText "Test: searching running nginx process"
|
||||||
FIND=$(${PSBINARY} ax | ${GREPBINARY} "/nginx" | ${GREPBINARY} "master" | ${GREPBINARY} -v "grep")
|
if IsRunning "nginx"; then
|
||||||
if HasData "${FIND}"; then
|
|
||||||
LogText "Result: found running nginx process(es)"
|
LogText "Result: found running nginx process(es)"
|
||||||
Display --indent 2 --text "- Checking nginx" --result "${STATUS_FOUND}" --color GREEN
|
Display --indent 2 --text "- Checking nginx" --result "${STATUS_FOUND}" --color GREEN
|
||||||
NGINX_RUNNING=1
|
NGINX_RUNNING=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user