Syntax fix was only valid in ksh93+

This commit is contained in:
Mark Garrett 2021-01-03 18:29:17 +11:00
parent 9a6d9cfc2c
commit c8175cf74d
1 changed files with 1 additions and 1 deletions

View File

@ -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"