From 52317de56c6426539ee21f319a5e0e4195a5eeb7 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Mon, 11 Jul 2016 10:32:00 +0200 Subject: [PATCH] Set date of break lines to similar format as normal log entries --- include/functions | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/functions b/include/functions index 29104c0e..080e3523 100644 --- a/include/functions +++ b/include/functions @@ -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 : + ################################################################################ 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 ################################################################################