-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
56 lines (26 loc) · 774 Bytes
/
Copy pathinstall.sh
File metadata and controls
56 lines (26 loc) · 774 Bytes
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
51
52
53
54
55
56
#!/bin/sh
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo "Script starts";
if ! builtin type -p easy_install &>/dev/null; then
echo "Installing setuptools"
apt-get -y install python-setuptools
echo "DONE"
fi
if ! builtin type -p curl &>/dev/null; then
echo "Installing curl"
apt-get -y install curl
echo "DONE"
fi
if ! builtin type -p pip &>/dev/null; then
echo "Installing pip"
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
echo "DONE"
fi
if builtin type -p pip &>/dev/null; then
echo "Installing sword requirements"
pip install -r requirements.txt
echo "DONE"
fi