1
0
mirror of https://github.com/garraflavatra/docker-volume-s3-backup.git synced 2025-07-16 07:04:05 +00:00

breaking change: if SCHEDULE is not set, run backup and then exit

This commit is contained in:
Elliott Shugerman
2021-12-07 22:15:47 -05:00
parent 87d335f46d
commit 8ef632ab84
2 changed files with 3 additions and 5 deletions

View File

@ -3,13 +3,11 @@
set -eu
if [ "$S3_S3V4" = "yes" ]; then
aws configure set default.s3.signature_version s3v4
aws configure set default.s3.signature_version s3v4
fi
if [ -z "$SCHEDULE" ]; then
# TODO: how to make CTRL-C work?
echo "WARNING: $SCHEDULE is null. Going to sleep."
tail -f /dev/null # do nothing forever
sh backup.sh
else
exec go-cron "$SCHEDULE" /bin/sh backup.sh
fi