Skip to content

Commit

Permalink
Improove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lobaro-dev committed Jan 18, 2017
1 parent 9ba91cc commit bd146db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd146db

Please sign in to comment.