debian-cis/lib
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
..
.gitignore Initial Commit Basic folders 2016-04-01 07:50:08 +02:00
common.sh FIX: add becho to send batch output to syslog too 2019-02-07 11:41:12 +01:00
constants.sh Update debian 7/8/9 in help files and remove in generic scripts 2019-02-06 15:19:14 +01:00
main.sh Change default status disabled -> audit when no conf file 2019-02-14 14:25:57 +01:00
utils.sh IMP(8.2.5): find multiline pattern in files (syslog) 2019-02-22 17:29:56 +01:00