mirror of https://github.com/CISOfy/lynis.git
Set date of break lines to similar format as normal log entries
This commit is contained in:
parent
77634d578c
commit
52317de56c
|
@ -1411,7 +1411,7 @@
|
|||
################################################################################
|
||||
|
||||
LogText() {
|
||||
if [ ! "${LOGFILE}" = "" ]; then CDATE=`date "+%Y-%m-%d %H:%M:%S"`; echo "${CDATE} $1" >> ${LOGFILE}; fi
|
||||
if [ ! "${LOGFILE}" = "" ]; then CDATE=$(date "+%Y-%m-%d %H:%M:%S"); echo "${CDATE} $1" >> ${LOGFILE}; fi
|
||||
}
|
||||
|
||||
|
||||
|
@ -1423,12 +1423,17 @@
|
|||
|
||||
LogTextBreak() {
|
||||
if [ ! "${LOGFILE}" = "" ]; then
|
||||
CDATE=`date "+[%H:%M:%S]"`
|
||||
CDATE=$(date "+%Y-%m-%d %H:%M:%S")
|
||||
echo "${CDATE} ===---------------------------------------------------------------===" >> ${LOGFILE}
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
################################################################################
|
||||
# Name : ParseProfiles()
|
||||
# Description : Check file permissions and parse data from profiles
|
||||
# Returns : <nothing>
|
||||
################################################################################
|
||||
|
||||
ParseProfiles() {
|
||||
SafePerms ${INCLUDEDIR}/profiles
|
||||
|
@ -1436,10 +1441,9 @@
|
|||
}
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
# Name : ParseTestValues()
|
||||
# Description : Parse nginx configuration lines
|
||||
# Description : Parse values from a specific test
|
||||
# Inputs : service (e.g. ssh)
|
||||
# Returns : CHECK_VALUES_ARRAY
|
||||
################################################################################
|
||||
|
|
Loading…
Reference in New Issue