From bd146dbf3b521f4c507001634e480f9e024b21f0 Mon Sep 17 00:00:00 2001 From: lobaro-demo Date: Wed, 18 Jan 2017 10:45:39 +0000 Subject: [PATCH] Improove logs --- entry.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entry.sh b/entry.sh index ec58138..39a4264 100755 --- a/entry.sh +++ b/entry.sh @@ -4,16 +4,16 @@ set -e echo "Starting container ..." if [ -n "${NFS_TARGET}" ]; then - echo "Mounting NFS based on NFS_TARGET" + echo "Mounting NFS based on NFS_TARGET: ${NFS_TARGET}" mount -o nolock -v ${NFS_TARGET} /mnt/restic fi if [ ! -f "$RESTIC_REPOSITORY/config" ]; then - echo "Restic repository does not exists. Running restic init." + echo "Restic repository '${RESTIC_REPOSITORY}' does not exists. Running restic init." restic init | true fi -echo "Setup backup cron job with cron expression: ${BACKUP_CRON}" +echo "Setup backup cron job with cron expression BACKUP_CRON: ${BACKUP_CRON}" echo "${BACKUP_CRON} /bin/backup >> /var/log/cron.log 2>&1" > /var/spool/cron/crontabs/root # Make sure the file exists before we start tail