You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
301 B

8 years ago
  1. #! /bin/sh
  2. set -eo pipefail
  3. if [ "${S3_S3V4}" = "yes" ]; then
  4. aws configure set default.s3.signature_version s3v4
  5. fi
  6. if [ "${SCHEDULE}" = "**None**" ]; then
  7. sh backup.sh
  8. else
  9. echo -e "SHELL=/bin/sh\n${SCHEDULE} /bin/sh /backup.sh" > /etc/crontabs/root
  10. exec go-crond /etc/crontabs/root
  11. fi