mirror of https://github.com/CISOfy/lynis.git
[NETW-2706] redirect errors to stderr
This commit is contained in:
parent
38a5c2cb79
commit
f25ffdbb1f
|
@ -197,7 +197,7 @@
|
|||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
SKIP=0
|
||||
if [ -n "${RESOLVECTLBINARY}" ]; then
|
||||
DNSSEC_STATUS=$(${RESOLVECTLBINARY} statistics | ${AWKBINARY} -F ":" '/DNSSEC supported/ { print $2 }' | ${TRBINARY} -d ' ')
|
||||
DNSSEC_STATUS=$(${RESOLVECTLBINARY} statistics 2> /dev/null | ${AWKBINARY} -F ":" '/DNSSEC supported/ { print $2 }' | ${TRBINARY} -d ' ')
|
||||
if [ "${DNSSEC_STATUS}" = "yes" ]; then
|
||||
Display --indent 4 --text "- DNSSEC supported (systemd-resolved)" --result "${STATUS_OK}" --color GREEN
|
||||
LogText "Result: DNSSEC supported by systemd-resolved and upstream DNS servers"
|
||||
|
|
Loading…
Reference in New Issue