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.

20 lines
505 B

9 years ago
9 years ago
9 years ago
  1. #! /bin/sh
  2. # exit if a command fails
  3. set -eo pipefail
  4. # install s3cmd
  5. apk update
  6. apk add --no-cache python py-pip py-setuptools git ca-certificates
  7. pip install python-magic
  8. git clone https://github.com/s3tools/s3cmd.git /tmp/s3cmd
  9. cd /tmp/s3cmd
  10. python setup.py install
  11. apk del git
  12. rm -rf /tmp/s3cmd
  13. # install go-cron
  14. apk add --no-cache curl
  15. curl -L https://github.com/odise/go-cron/releases/download/v0.0.6/go-cron-linux.gz | zcat > /usr/local/bin/go-cron
  16. chmod u+x /usr/local/bin/go-cron
  17. apk del curl