debian-cis/tests/docker
Charles Herlin da6acb0b0c IMP(8.2.5): find multiline pattern in files (syslog)
Add func to find pattern in file that spreads over multiple lines
The func will remove commented lines (that begin with '#')
and consider the file as one long line.
Thus, this is not possible to look for pattern at beginning of line
with this func ('^' and '$')

Improved pattern in 8.2.5

Add syslog-ng to installed dependencies in Dockerfiles

Fixed multifile arguments when looking for pattern that got broken
in d2bbf754 due to "nocase" and _does_pattern_exist_in_file wrapper
Please note that you can only look for pattern in ONE FILE at once
Fixed 8.2.5 and 8.3.2 with for loop on files and 'FOUND' flag
You now need to specify each and every file to look for or embed a
'find' command as follow :
`FILES="$SYSLOG_BASEDIR/syslog-ng.conf $(find $SYSLOG_BASEDIR/conf.d/)"`

Improved test files
Applied shellcheck recommendations
2019-02-22 17:29:56 +01:00
..
Dockerfile.debian8 IMP(8.2.5): find multiline pattern in files (syslog) 2019-02-22 17:29:56 +01:00
Dockerfile.debian9 IMP(8.2.5): find multiline pattern in files (syslog) 2019-02-22 17:29:56 +01:00
Dockerfile.debian10_20181226 IMP(8.2.5): find multiline pattern in files (syslog) 2019-02-22 17:29:56 +01:00