mirror of https://github.com/CISOfy/lynis.git
Merge pull request #1099 from gcsgithub/master
fix syntax must include ${}
This commit is contained in:
commit
a5a0bc0434
|
@ -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]@")
|
||||
if [ -n "${FIND}" ]; then
|
||||
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"
|
||||
else
|
||||
LogText "Result: remote logging enabled"
|
||||
|
|
Loading…
Reference in New Issue