diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-07-11 11:32:00 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-07-11 11:32:00 +0300 |
commit | 52317de56c6426539ee21f319a5e0e4195a5eeb7 (patch) | |
tree | e04855aa8fe82dd8135721928fc34bef7ceacbfb | |
parent | 77634d578cb75dec1a8260ac896a156fd3555553 (diff) |
Set date of break lines to similar format as normal log entries
-rw-r--r-- | include/functions | 12 |
1 files 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 : <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 ################################################################################ |