mirror of https://github.com/CISOfy/lynis.git
Exit with exit code 0 by default, unless error-on-warnings is being used
This commit is contained in:
parent
a3075d2e8f
commit
eae8ef99a4
|
@ -76,6 +76,7 @@ unset LANG
|
|||
DB2_RUNNING=0
|
||||
DISCOVERED_BINARIES=""
|
||||
DOCKER_DAEMON_RUNNING=0
|
||||
ERROR_ON_WARNINGS=0
|
||||
FILEVALUE=""
|
||||
FIND=""
|
||||
FIREWALL_ACTIVE=0
|
||||
|
|
|
@ -99,6 +99,13 @@
|
|||
fi
|
||||
;;
|
||||
|
||||
# Show non-zero exit code when errors are found
|
||||
error-on-warnings)
|
||||
if [ "${VALUE}" = "yes" -o "${VALUE}" = "true" -o ${VALUE} = "1" ]; then
|
||||
ERROR_ON_WARNINGS=1
|
||||
fi
|
||||
;;
|
||||
|
||||
# Skip FreeBSD port audit
|
||||
freebsd_skip_portaudit)
|
||||
LogText "Option set: Skip FreeBSD portaudit"
|
||||
|
|
Loading…
Reference in New Issue