mirror of https://github.com/CISOfy/lynis.git
Set logfile and reportfile to /dev/null in pentesting mode if they are empty
This commit is contained in:
parent
284337be1b
commit
2373590be9
6
lynis
6
lynis
|
@ -157,6 +157,12 @@
|
|||
echo ""; echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Disable logging if no alternative was provided
|
||||
if [ ${PENTESTINGMODE} -eq 1 ]; then
|
||||
if [ "${LOGFILE}" = "" ]; then LOGFILE="/dev/null"; fi
|
||||
if [ "${REPORTFILE}" = "" ]; then REPORTFILE="/dev/null"; fi
|
||||
fi
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue