Skip to content

Commit

Permalink
[FIX] entrypoint script
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin-Kaiser committed Apr 9, 2024
1 parent 158a6d6 commit 908e746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh -x

# Initialize the repository if it doesn't exist
restic -r $RESTIC_REPOSITORY cat config 2>/dev/null || restic -r $RESTIC_REPOSITORY init && /backup.sh
restic -r $RESTIC_REPOSITORY cat config 2>/dev/null || (restic -r $RESTIC_REPOSITORY init && /backup.sh)

# Add the backup job to the crontab if it doesn't exist
crontab -l | grep -q "backup.sh" || (
Expand Down

0 comments on commit 908e746

Please sign in to comment.