Last active
November 4, 2015 23:41
-
-
Save davetapley/7ad1cc383ee417685854 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
{ | |
echo "This script requires superuser access to install apt packages." | |
echo "You will be prompted for your password by sudo." | |
# clear any previous sudo permission | |
sudo -k | |
# run inside sudo | |
sudo sh <<SCRIPT | |
# add RabbitMQ repository to apt | |
echo "deb http://www.rabbitmq.com/debian/ testing main" > /etc/apt/sources.list.d/rabbitmq.list | |
# install RabbitMQ's release key for package verification | |
wget -O- https://www.rabbitmq.com/rabbitmq-signing-key-public.asc | apt-key add - | |
# update your sources | |
apt-get update | |
# install the server | |
apt-get install -y rabbitmq-server | |
SCRIPT | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inspired by: https://toolbelt.heroku.com/install-ubuntu.sh