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.

21 lines
504 B

10 years ago
10 years ago
10 years ago
  1. #! /bin/bash
  2. # exit if a command fails
  3. set -eo pipefail
  4. version="1.11"
  5. # install curl (needed to install rust)
  6. apt-get update && apt-get install -y curl build-essential
  7. # download
  8. curl -sL https://github.com/kr/beanstalkd/archive/v$version.tar.gz | tar xvz -C /tmp
  9. # build and install
  10. cd /tmp/beanstalkd-$version
  11. make
  12. cp beanstalkd /usr/bin
  13. # cleanup package manager
  14. apt-get remove --purge -y curl build-essential && apt-get autoclean && apt-get clean
  15. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*