File: centos-provision.sh

package info (click to toggle)
getmac 0.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 976 kB
  • sloc: python: 2,133; sh: 84; makefile: 23
file content (27 lines) | stat: -rw-r--r-- 913 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# Basic Provisioning for CentOS7
# -y: 'yes' to all prompts
# -t: continues through errors (so our whole system setup isn't halted by some repo error)
# -q: quiet

sudo yum -y -t -q update
sudo yum -y -t -q install epel-release
sudo yum -y -t -q install yum-utils \
    git make \
    dos2unix nano \
    python-pip python-setuptools python-virtualenv \
    rpm-build rpm-sign rpmdevtools

# https://stackoverflow.com/a/23317640/2214380
sudo yum -y -t -q install python34 python34-setuptools python34-virtualenv
# note: can't install pip anymore, too old :)
#sudo easy_install-3.4 pip
#sudo pip3 install virtualenv

# Pull down the codebase
git clone https://github.com/GhostofGoes/getmac.git

# Create Python virtual environments
mkdir -p "$HOME/.virtualenvs/"
python3.4 -m virtualenv --python=python3.4 "$HOME/.virtualenvs/getmac34"
python -m virtualenv --python=python2 "$HOME/.virtualenvs/getmac27"