From db4dc4d5987ed312ab4f07ffee25c3973fb16bc7 Mon Sep 17 00:00:00 2001 From: Charles Herlin Date: Thu, 28 Feb 2019 16:41:41 +0100 Subject: [PATCH] FIX(8.2.5): grep: x is a directory --- bin/hardening/8.2.5_syslog-ng_remote_host.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hardening/8.2.5_syslog-ng_remote_host.sh b/bin/hardening/8.2.5_syslog-ng_remote_host.sh index 3f7747c..48e0544 100755 --- a/bin/hardening/8.2.5_syslog-ng_remote_host.sh +++ b/bin/hardening/8.2.5_syslog-ng_remote_host.sh @@ -19,7 +19,7 @@ PATTERN='destination[[:alnum:][:space:]*{]+(tcp|udp)[[:space:]]*\(\"[[:alnum:].] # This function will be called if the script status is on enabled / audit mode audit () { FOUND=0 - FILES="$SYSLOG_BASEDIR/syslog-ng.conf $(find $SYSLOG_BASEDIR/conf.d/)" + FILES="$SYSLOG_BASEDIR/syslog-ng.conf $(find $SYSLOG_BASEDIR/conf.d/ -type f)" for FILE in $FILES; do does_pattern_exist_in_file_multiline "$FILE" "$PATTERN" if [ $FNRET = 0 ]; then