IS_SYSLOGCONF: better detection

This commit is contained in:
Jérémy Lecour 2024-01-26 16:17:34 +01:00 committed by Jérémy Lecour
parent 5536e8f6ec
commit c4c8dd2112
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
2 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,8 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
### Changed
* IS_SYSLOGCONF: better detection
### Deprecated
### Removed

View file

@ -193,7 +193,7 @@ check_logrotateconf() {
test -e /etc/logrotate.d/zsyslog || failed "IS_LOGROTATECONF" "missing zsyslog in logrotate.d"
}
check_syslogconf() {
grep -q "^# Syslog for Pack Evolix serveur" /etc/*syslog.conf \
grep --quiet --ignore-case "^Syslog for Pack Evolix" /etc/*syslog*/*.conf \
|| failed "IS_SYSLOGCONF" "syslog evolix config file missing"
}
check_debiansecurity() {