Last active
February 19, 2018 05:02
-
-
Save markusklems/5956506 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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