diff options
author | Wojciech Banaś <fizista@gmail.com> | 2022-02-14 15:23:20 +0300 |
---|---|---|
committer | Wojciech Banaś <fizista@gmail.com> | 2022-02-14 15:23:20 +0300 |
commit | 4098236412d5f846f43576a35ac8694ed4783ce8 (patch) | |
tree | 6baf56462306457140989e2a3be9773e3e3579ef /include/tests_databases | |
parent | 4f382331b3d7d141c49a971050d3a9b61a94c511 (diff) |
#1270 added finding configuration files in the "etc" directory, even if they are symlinks
Diffstat (limited to 'include/tests_databases')
-rw-r--r-- | include/tests_databases | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_databases b/include/tests_databases index 9a8755bf..f5bc22ae 100644 --- a/include/tests_databases +++ b/include/tests_databases @@ -204,7 +204,7 @@ Register --test-no DBS-1828 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Test PostgreSQL configuration" if [ ${SKIPTEST} -eq 0 ]; then FIND_PATHS="${ROOTDIR}etc/postgres ${ROOTDIR}var/lib/postgres/data ${ROOTDIR}usr/local/pgsql/data" - CONFIG_FILES=$(${FINDBINARY} ${FIND_PATHS} -type f -name "*.conf" -print0 2> /dev/null | ${TRBINARY} -cd '[:print:]\0' | ${TRBINARY} -d '\n' | ${TRBINARY} '\0' '\n' | xargs -i sh -c 'test -r "{}" && echo "{}"' | ${SEDBINARY} "s/ /:space:/g") + CONFIG_FILES=$(${FINDBINARY} -L ${FIND_PATHS} -type f -name "*.conf" -print0 2> /dev/null | ${TRBINARY} -cd '[:print:]\0' | ${TRBINARY} -d '\n' | ${TRBINARY} '\0' '\n' | xargs -i sh -c 'test -r "{}" && echo "{}"' | ${SEDBINARY} "s/ /:space:/g") for CF in ${CONFIG_FILES}; do Report "postgresql_config_file[]=${CF}" LogText "Found configuration file (${CF})" |