Files
docker-backup-gpg-s3/run.sh
matthias 94f8682e64
All checks were successful
continuous-integration/drone/push Build is passing
„run.sh“ ändern
2021-01-29 04:07:41 +00:00

15 lines
226 B
Bash

#!/bin/sh
# Import GPG public keys
gpg --import /keys/*
if [ ${RUN_NOW:-0} -ne 0 ]; then
/backup.sh
fi
# Create and install crontab file
echo "$CRON_INTERVAL /backup.sh" > /backup.cron
crontab /backup.cron
crond -f -d 8