mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 07:44:14 +02:00
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
|
if [ ${QNAP_DEVICE} -eq 1 ]; then
|
||||||
PATHS="${PATHS} ${ROOTDIR}share/CACHEDEV1_DATA/.qpkg/QKVM/usr/etc/redis.conf"
|
PATHS="${PATHS} ${ROOTDIR}share/CACHEDEV1_DATA/.qpkg/QKVM/usr/etc/redis.conf"
|
||||||
fi
|
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)
|
ALLFILES=$(${LSBINARY} ${ROOTDIR}etc/redis.conf 2> /dev/null)
|
||||||
FOUND=0
|
FOUND=0
|
||||||
for DIR in ${PATHS}; do
|
for DIR in ${PATHS}; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user