1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-4598: Fix the syslog setup script. Add syslog options for broken/non-syslog setup.

This commit is contained in:
benthompson15
2021-04-29 16:33:48 -05:00
parent 374103220c
commit 1eea9f9e47
3 changed files with 9 additions and 9 deletions

View File

@ -107,15 +107,15 @@ if [ "$daemon" = "syslog-ng" ]; then
elif [ "$daemon" = "rsyslog" ]; then
#check if rsyslog version 7 or greater
rsyslogd -v > ${tmpDir}/rsyslog.ver
cnt=`grep "rsyslogd 7" ${tmpDir}/rsyslog.ver | wc -l`
cnt=`grep "rsyslogd \+7" ${tmpDir}/rsyslog.ver | wc -l`
if [ $cnt -gt 0 ]; then
rsyslog7=1
fi
cnt=`grep "rsyslogd 8" ${tmpDir}/rsyslog.ver | wc -l`
cnt=`grep "rsyslogd \+8" ${tmpDir}/rsyslog.ver | wc -l`
if [ $cnt -gt 0 ]; then
rsyslog7=1
fi
cnt=`grep "rsyslogd 9" ${tmpDir}/rsyslog.ver | wc -l`
cnt=`grep "rsyslogd \+9" ${tmpDir}/rsyslog.ver | wc -l`
if [ $cnt -gt 0 ]; then
rsyslog7=1
fi