Created
October 24, 2014 20:05
-
-
Save robbwagoner/fb0a587e48ffd7401696 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 -e | |
if [ -f /etc/os-release ] ; then | |
# newer OS | |
source /etc/os-release | |
fi | |
if [[ $ID_LIKE == "debian" ]] ; then | |
echo "Debian-like Distro: $PRETTY_NAME" | |
else | |
echo "ERROR: unsupported $ID_LIKE ($PRETTY_NAME)" 1>&2 | |
exit 2 | |
fi | |
# Jenkins | |
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - | |
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list' | |
sudo apt-get update | |
sudo apt-get install jenkins -y | |
# HAProxy | |
sudo add-apt-repository ppa:vbernat/haproxy-1.5 | |
sudo apt-get install haproxy | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment