#71538 : fix Redis dump list in case directory is a symlink

Cf. #fd9bb57f8bd0d2537d82e7e3cf4362e3da0538ea
This commit is contained in:
Jérémy Lecour 2023-07-06 09:08:23 +02:00 committed by Jérémy Lecour
parent d71fd5343f
commit b4ab681061
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY

View file

@ -638,7 +638,7 @@ dump_postgresql_filtered() {
# --instances=[Integer] (default: all)
#######################################################################
dump_redis() {
all_instances=$(find /var/lib/ -mindepth 1 -maxdepth 1 -type d -name 'redis*')
all_instances=$(find /var/lib/ -mindepth 1 -maxdepth 1 '(' -type d -o -type l ')' -name 'redis*')
local option_instances=""
# Parse options, based on https://gist.github.com/deshion/10d3cb5f88a21671e17a