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"