mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 15:54:09 +02:00
Pass information about locate prereqs to Register.
Prevent the locate test from running spuriously when locate is not present
This commit is contained in:
parent
474d69dfd6
commit
bfd24585cf
@ -538,7 +538,7 @@
|
|||||||
# or /var/cache/locate/locatedb
|
# or /var/cache/locate/locatedb
|
||||||
# FreeBSD /var/db/locate.database
|
# FreeBSD /var/db/locate.database
|
||||||
if [ ! "${LOCATEBINARY}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
if [ ! "${LOCATEBINARY}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||||
Register --test-no FILE-6410 --os Linux --weight L --network NO --description "Checking Locate database"
|
Register --test-no FILE-6410 --preqs-met ${PREQS_MET} --os Linux --weight L --network NO --description "Checking Locate database"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
logtext "Test: Checking locate database"
|
logtext "Test: Checking locate database"
|
||||||
FOUND=0
|
FOUND=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user