mirror of https://github.com/CISOfy/lynis.git
include/tests_filesystems tweak
This commit is contained in:
parent
2577caf66d
commit
e37446521d
|
@ -297,7 +297,7 @@
|
|||
Display --indent 2 --text "- Checking for old files in /tmp" --result OK --color GREEN
|
||||
logtext "Result: no files found in /tmp which are older than 3 months"
|
||||
else
|
||||
Display --indent 2 --text "- Checking for old files in /tmp" --result FOUND --color RED
|
||||
Display --indent 2 --text "- Checking for old files in /tmp" --result WARNING --color RED
|
||||
N=0
|
||||
for I in ${FIND}; do
|
||||
FILE=`echo ${I} | sed 's/!space!/ /g'`
|
||||
|
@ -567,7 +567,7 @@
|
|||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
logtext "Test: Checking locate database"
|
||||
FOUND=0
|
||||
LOCATE_DBS="/var/lib/mlocate/mlocate.db /var/lib/locatedb /var/lib/slocate/slocate.db /var/cache/locate/locatedb /var/db/locate.database"
|
||||
LOCATE_DBS="/var/lib/mlocate/mlocate.db /var/lib/locate/locatedb /var/lib/locatedb /var/lib/slocate/slocate.db /var/cache/locate/locatedb /var/db/locate.database"
|
||||
for I in ${LOCATE_DBS}; do
|
||||
if [ -f ${I} ]; then
|
||||
logtext "Result: locate database found (${I})"
|
||||
|
|
Loading…
Reference in New Issue