-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkickstart.sh
executable file
·51 lines (44 loc) · 1012 Bytes
/
kickstart.sh
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
# Ensure homebrew is installed
echo '* checking for Homebrew...'
which brew > /dev/null
if [ $? -ne 0 ]; then
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
else
echo ' detected'
fi
echo '* checking for pip...'
which pip > /dev/null
if [ $? -ne 0 ]; then
brew install python
else
echo ' detected'
fi
echo '* checking for ruby (required by vagrant)...'
which ruby > /dev/null
if [ $? -ne 0 ]; then
brew install ruby
else
echo ' detected'
fi
echo '* checking for vagrant...'
which vagrant > /dev/null
if [ $? -ne 0 ]; then
echo 'Please download and install vagrant'
echo 'http://www.vagrantup.com/'
exit 1
else
echo ' detected'
fi
# Ensure plumbum is installed
python provisioning/scripts/ensure-plumbum.py
if [ $? -ne 0 ]; then
print 'Failed to run plumbum installer'
exit 1
fi
# Do stuff
python provisioning/scripts/kickstart.py
if [ $? -ne 0 ]; then
print 'Failed to run kickstarter script'
exit 1
fi