backup-bot-two/setup-cron.sh
3wc 9e818ed021
All checks were successful
continuous-integration/drone/push Build is passing
Revert to previous, probably-working cron set-up
2021-11-11 12:05:04 +02:00

12 lines
187 B
Bash

#!/bin/bash
set -e
set -o pipefail
cron_schedule="${CRON_SCHEDULE:?CRON_SCHEDULE not set}"
echo "$cron_schedule /usr/bin/backup.sh" | crontab -
crontab -l
crond -f -d8 -L /dev/stdout