mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 00:04:16 +02:00
Set default log directory, or allow it be set per OS
This commit is contained in:
parent
4660362e74
commit
a547953d99
@ -130,6 +130,7 @@ unset LANG
|
|||||||
LMDBINARY=""
|
LMDBINARY=""
|
||||||
LMDFOUND=0
|
LMDFOUND=0
|
||||||
LOGFILE=""
|
LOGFILE=""
|
||||||
|
LOGDIR=""
|
||||||
LOGTEXT=1
|
LOGTEXT=1
|
||||||
LSVGBINARY=""
|
LSVGBINARY=""
|
||||||
MACHINEID=""
|
MACHINEID=""
|
||||||
|
@ -111,6 +111,7 @@
|
|||||||
HARDWARE=$(uname -m)
|
HARDWARE=$(uname -m)
|
||||||
FIND_BINARIES="whereis -b"
|
FIND_BINARIES="whereis -b"
|
||||||
SYSCTL_READKEY=""
|
SYSCTL_READKEY=""
|
||||||
|
LOGDIR="/var/adm/syslog"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Linux
|
# Linux
|
||||||
|
5
lynis
5
lynis
@ -297,9 +297,10 @@ ${NORMAL}
|
|||||||
DiscoverProfiles
|
DiscoverProfiles
|
||||||
|
|
||||||
# Initialize and check profile file, auditor name, log file and report file
|
# Initialize and check profile file, auditor name, log file and report file
|
||||||
|
if [ -z "${LOGDIR}" ]; then LOGDIR="/var/log"; fi
|
||||||
if [ -z "${AUDITORNAME}" ]; then AUDITORNAME="[Not Specified]"; fi
|
if [ -z "${AUDITORNAME}" ]; then AUDITORNAME="[Not Specified]"; fi
|
||||||
if [ -z "${LOGFILE}" ]; then LOGFILE="/var/log/lynis.log"; fi
|
if [ -z "${LOGFILE}" ]; then LOGFILE="${LOGDIR}/lynis.log"; fi
|
||||||
if [ -z "${REPORTFILE}" ]; then REPORTFILE="/var/log/lynis-report.dat"; fi
|
if [ -z "${REPORTFILE}" ]; then REPORTFILE="${LOGDIR}/lynis-report.dat"; fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user