From e551725d7aa82017bbc3b92020e5ca8fcadb1967 Mon Sep 17 00:00:00 2001 From: 10 <10@users.noreply.gitlab.com> Date: Sun, 18 Nov 2018 02:14:19 +0100 Subject: [PATCH] Changed time format --- backup.sh | 4 ++-- start.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backup.sh b/backup.sh index c4843e8..e35a5c4 100644 --- a/backup.sh +++ b/backup.sh @@ -3,7 +3,7 @@ /usr/bin/sqlite3 $DB_FILE ".backup $BACKUP_FILE" if [ $? -eq 0 ] then - echo "$(date) - Backup successfull" + echo "$(date "+%F %T") - Backup successfull" else - echo "$(date) - Backup unsuccessfull" + echo "$(date "+%F %T") - Backup unsuccessfull" fi diff --git a/start.sh b/start.sh index c3c9e17..d465a1b 100644 --- a/start.sh +++ b/start.sh @@ -24,5 +24,5 @@ then /usr/sbin/crond -L /var/log/cron.log fi -echo "$(date) - Container started" > "$LOGFILE" +echo "$(date "+%F %T") - Container started" > "$LOGFILE" tail -F "$LOGFILE"