mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 16:24:13 +02:00
Changed text for Redis test
This commit is contained in:
parent
f0a957642b
commit
bf7b8ab44e
@ -197,13 +197,13 @@
|
|||||||
if [ ! -z "${FILES}" ]; then
|
if [ ! -z "${FILES}" ]; then
|
||||||
for CONFFILE in ${FILES}; do
|
for CONFFILE in ${FILES}; do
|
||||||
if FileIsReadable ${CONFFILE}; then
|
if FileIsReadable ${CONFFILE}; then
|
||||||
LogText "Action: checking if ${CONFFILE} this is a Sentinel configuration file"
|
LogText "Action: checking if ${CONFFILE} is a Sentinel configuration file"
|
||||||
# Exclude Sentinel configuration file
|
# Exclude Sentinel configuration file
|
||||||
FIND=$(grep "^sentinel " ${CONFFILE})
|
FIND=$(grep "^sentinel " ${CONFFILE})
|
||||||
if [ ! -z "${FIND}" ]; then
|
if [ ! -z "${FIND}" ]; then
|
||||||
LogText "Result: file is a Sentinel configuration file, skipping"
|
LogText "Result: file is a Sentinel configuration file, skipping it"
|
||||||
else
|
else
|
||||||
LogText "Result: not a Sentinel configuration file. Now scanning if it is a Redis configuration file"
|
LogText "Result: file is NOT a Sentinel configuration file. Now scanning if it is a Redis configuration file"
|
||||||
FIND=$(grep "Redis" ${CONFFILE})
|
FIND=$(grep "Redis" ${CONFFILE})
|
||||||
if [ ! -z "${FIND}" ]; then
|
if [ ! -z "${FIND}" ]; then
|
||||||
REDIS_CONFIGURATION_FILES="${REDIS_CONFIGURATION_FILES} ${CONFFILE}"
|
REDIS_CONFIGURATION_FILES="${REDIS_CONFIGURATION_FILES} ${CONFFILE}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user