Allow restic init to fail to support SFTP

This commit is contained in:
Tobias Kaupat
2016-11-08 00:07:31 +01:00
committed by GitHub
parent b1831b4d85
commit 8b8e810b03

View File

@@ -9,7 +9,7 @@ fi
if [ ! -f "$RESTIC_REPOSITORY/config" ]; then
echo "Restic repository does not exists. Running restic init."
restic init
restic init | true
fi
echo "Setup backup cron job with cron expression: ${BACKUP_CRON}"