mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
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() {
|
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() {
|
LogTextBreak() {
|
||||||
if [ ! "${LOGFILE}" = "" ]; then
|
if [ ! "${LOGFILE}" = "" ]; then
|
||||||
CDATE=`date "+[%H:%M:%S]"`
|
CDATE=$(date "+%Y-%m-%d %H:%M:%S")
|
||||||
echo "${CDATE} ===---------------------------------------------------------------===" >> ${LOGFILE}
|
echo "${CDATE} ===---------------------------------------------------------------===" >> ${LOGFILE}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Name : ParseProfiles()
|
||||||
|
# Description : Check file permissions and parse data from profiles
|
||||||
|
# Returns : <nothing>
|
||||||
|
################################################################################
|
||||||
|
|
||||||
ParseProfiles() {
|
ParseProfiles() {
|
||||||
SafePerms ${INCLUDEDIR}/profiles
|
SafePerms ${INCLUDEDIR}/profiles
|
||||||
@ -1436,10 +1441,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Name : ParseTestValues()
|
# Name : ParseTestValues()
|
||||||
# Description : Parse nginx configuration lines
|
# Description : Parse values from a specific test
|
||||||
# Inputs : service (e.g. ssh)
|
# Inputs : service (e.g. ssh)
|
||||||
# Returns : CHECK_VALUES_ARRAY
|
# Returns : CHECK_VALUES_ARRAY
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user