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

support null $SCHEDULE

This commit is contained in:
Elliott Shugerman
2020-05-28 22:32:36 -06:00
parent c036e13ef4
commit 48eb1736aa
2 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,9 @@ if [ "$S3_S3V4" = "yes" ]; then
fi
if [ -z "$SCHEDULE" ]; then
echo "You need to set the SCHEDULE environment variable."
# TODO: how to make CTRL-C work?
echo "WARNING: $SCHEDULE is null. Going to sleep."
tail -f /dev/null # do nothing forever
else
exec go-cron "$SCHEDULE" /bin/sh backup.sh
fi