mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 00:04:16 +02:00
[NETW-2706] redirect errors to stderr
This commit is contained in:
parent
38a5c2cb79
commit
ddb7ff1762
@ -197,7 +197,7 @@
|
|||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
SKIP=0
|
SKIP=0
|
||||||
if [ -n "${RESOLVECTLBINARY}" ]; then
|
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
|
if [ "${DNSSEC_STATUS}" = "yes" ]; then
|
||||||
Display --indent 4 --text "- DNSSEC supported (systemd-resolved)" --result "${STATUS_OK}" --color GREEN
|
Display --indent 4 --text "- DNSSEC supported (systemd-resolved)" --result "${STATUS_OK}" --color GREEN
|
||||||
LogText "Result: DNSSEC supported by systemd-resolved and upstream DNS servers"
|
LogText "Result: DNSSEC supported by systemd-resolved and upstream DNS servers"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user