mirror of https://github.com/CISOfy/lynis.git
[DBS-1882] added support for QNAP path
This commit is contained in:
parent
c34c8265ad
commit
c50db85aaa
|
@ -260,6 +260,9 @@
|
|||
Register --test-no DBS-1882 --weight L --network NO --preqs-met "${PREQS_MET}" --skip-reason "${SKIPREASON}" --category security --description "Redis configuration file"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
PATHS="${ROOTDIR}etc/redis ${ROOTDIR}usr/local/etc/redis ${ROOTDIR}usr/local/redis/etc"
|
||||
if [ ${QNAP_DEVICE} -eq 1 ]; then
|
||||
PATHS="${PATHS} ${ROOTDIR}share/CACHEDEV1_DATA/.qpkg/QKVM/usr/etc/redis.conf"
|
||||
fi
|
||||
ALLFILES=$(${LSBINARY} ${ROOTDIR}etc/redis.conf 2> /dev/null)
|
||||
FOUND=0
|
||||
for DIR in ${PATHS}; do
|
||||
|
|
Loading…
Reference in New Issue