restic-compose-backup/src/entrypoint.sh
2019-12-08 06:38:56 +01:00

11 lines
212 B
Bash
Executable file

#!/bin/sh
# Dump all env vars so we can source them in cron jobs
printenv | sed 's/^\(.*\)$/export \1/g' > /env.sh
# Write crontab
rcb crontab > crontab
# start cron in the foreground
crontab crontab
crond -f