mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-30 01:04:39 +02:00
Extended example
This commit is contained in:
parent
d5a5cc3173
commit
075a69e125
@ -111,9 +111,11 @@
|
|||||||
# Test : CUST-0040
|
# Test : CUST-0040
|
||||||
# Description : Our second test, with a prequisite test
|
# Description : Our second test, with a prequisite test
|
||||||
|
|
||||||
# First check if OPENSSLBINARY is known as a prerequisite for this test.
|
# First check if OPENSSLBINARY is known as a prerequisite for this test
|
||||||
if [ ! "${OPENSSLBINARY}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
# ! means "not". So if the binary is known, the prerequisite is matched. Otherwise we set it to NO and define a reason why we skipped this test
|
||||||
Register --test-no CUST-0040 --preqs-met ${PREQS_MET} --weight M --network NO --category security --description "Description of custom test"
|
|
||||||
|
if [ ! "${OPENSSLBINARY}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; SKIPREASON="No OpenSSL binary found"; fi
|
||||||
|
Register --test-no CUST-0040 --preqs-met ${PREQS_MET} --skip-reason "${SKIPREASON}" --weight M --network NO --category security --description "Description of custom test"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
# Set variable to zero, to indicate that we have no problems found (yet)
|
# Set variable to zero, to indicate that we have no problems found (yet)
|
||||||
FOUNDPROBLEM=0
|
FOUNDPROBLEM=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user