Skip to content

Instantly share code, notes, and snippets.

@markusklems
Last active February 19, 2018 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save markusklems/5956506 to your computer and use it in GitHub Desktop.
Save markusklems/5956506 to your computer and use it in GitHub Desktop.
#!/bin/bash -ex
# Riak install and config script snippets
# http://docs.basho.com/riak/latest/ops/building/installing/debian-ubuntu/
# http://docs.basho.com/riak/latest/tutorials/installation/Installing-on-RHEL-and-CentOS/
if which dpkg &> /dev/null; then
curl http://apt.basho.com/gpg/basho.apt.key | sudo apt-key add -
sudo bash -c "echo deb http://apt.basho.com $(lsb_release -sc) main > /etc/apt/sources.list.d/basho.list"
sudo apt-get update
sudo apt-get install riak
elif which rpm &> /dev/null; then
sudo yum install http://yum.basho.com/gpg/basho-release-6-1.noarch.rpm
sudo yum install riak
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment