Merge pull request #1328 from konstruktoid/issue1327

find redis.conf if /snap directory exists
This commit is contained in:
Michael Boelen 2024-03-12 13:38:40 +01:00 committed by GitHub
commit 264012a4ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -316,6 +316,12 @@
if [ ${QNAP_DEVICE} -eq 1 ]; then
PATHS="${PATHS} ${ROOTDIR}share/CACHEDEV1_DATA/.qpkg/QKVM/usr/etc/redis.conf"
fi
if [ -d "${ROOTDIR}snap" ]; then
for SNAP_PATH in $(${FINDBINARY} ${ROOTDIR}snap -name 'redis.conf' -type f | ${SEDBINARY} 's/redis.conf$//g'); do
PATHS="${PATHS} ${SNAP_PATH}"
done
fi
ALLFILES=$(${LSBINARY} ${ROOTDIR}etc/redis.conf 2> /dev/null)
FOUND=0
for DIR in ${PATHS}; do