]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/blame - bootstrap.sh
Addressed issue #5
[github/fretlink/ansible-rabbitmq.git] / bootstrap.sh
CommitLineData
203ffcbf
LSJ
1#!/bin/bash
2if [ -f /etc/debian_version ]; then
3 codename="$(lsb_release -c | awk {'print $2}')"
4 if [ $codename == "vivid" ]; then
5 sudo apt-get update && sudo apt-get -y install python-simplejson
6 fi
7fi
8if [ -f /etc/redhat-release ]; then
9 codename="$(gawk -F= '/^NAME/{print $2}' /etc/os-release)"
10 if [ $codename == "Fedora" ]; then
11 sudo dnf -y install python-devel python-dnf python-pip && \
12 sudo dnf -y group install "C Development Tools and Libraries"
13 fi
14fi