mirror of https://github.com/CISOfy/lynis.git
Syntax fix was only valid in ksh93+
This commit is contained in:
parent
9a6d9cfc2c
commit
c8175cf74d
|
@ -427,7 +427,7 @@
|
||||||
FIND=$(${EGREPBINARY} "@[a-zA-Z0-9]|destination\s.+(udp|tcp).+\sport" ${SYSLOGD_CONF} | ${GREPBINARY} -v "^#" | ${GREPBINARY} -v "[a-zA-Z0-9]@")
|
FIND=$(${EGREPBINARY} "@[a-zA-Z0-9]|destination\s.+(udp|tcp).+\sport" ${SYSLOGD_CONF} | ${GREPBINARY} -v "^#" | ${GREPBINARY} -v "[a-zA-Z0-9]@")
|
||||||
if [ -n "${FIND}" ]; then
|
if [ -n "${FIND}" ]; then
|
||||||
FIND2=$(echo "${FIND}" | ${GREPBINARY} -v "@loghost")
|
FIND2=$(echo "${FIND}" | ${GREPBINARY} -v "@loghost")
|
||||||
if [ SOLARIS_LOGHOST_LOCALHOST -eq 1 ] && [ -z "${FIND2}" ]; then
|
if [ ${SOLARIS_LOGHOST_LOCALHOST} -eq 1 ] && [ -z "${FIND2}" ]; then
|
||||||
LogText "Result: remote logging enabled to loghost, but loghost is localhost"
|
LogText "Result: remote logging enabled to loghost, but loghost is localhost"
|
||||||
else
|
else
|
||||||
LogText "Result: remote logging enabled"
|
LogText "Result: remote logging enabled"
|
||||||
|
|
Loading…
Reference in New Issue