mirror of https://github.com/CISOfy/lynis.git
find redis.conf if /snap directory exists
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
fe5990f208
commit
fc62b39f34
|
@ -302,6 +302,12 @@
|
|||
if [ ${QNAP_DEVICE} -eq 1 ]; then
|
||||
PATHS="${PATHS} ${ROOTDIR}share/CACHEDEV1_DATA/.qpkg/QKVM/usr/etc/redis.conf"
|
||||
fi
|
||||
if [ -d "/snap" ]; then
|
||||
for SNAP_PATH in $(${FINDBINARY} /snap -name 'redis.conf' -type f); do
|
||||
PATHS="${PATHS} ${SNAP_PATH}"
|
||||
done
|
||||
fi
|
||||
|
||||
ALLFILES=$(${LSBINARY} ${ROOTDIR}etc/redis.conf 2> /dev/null)
|
||||
FOUND=0
|
||||
for DIR in ${PATHS}; do
|
||||
|
|
Loading…
Reference in New Issue