debian-cis/bin
Charles Herlin 80a1146af7 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 12:39:41 +01:00
..
hardening IMP(8.2.5): find multiline pattern in files (syslog) 2019-02-22 12:39:41 +01:00
postinstall Update debian 7/8/9 in help files and remove in generic scripts 2019-02-06 15:19:14 +01:00
.gitignore Initial Commit Basic folders 2016-04-01 07:50:08 +02:00
hardening.sh FIX: usage if no RUN_MODE, fix only that used to run too many checks 2019-02-13 17:11:28 +01:00