-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdebian_packages_install.sh
executable file
·65 lines (53 loc) · 1.25 KB
/
debian_packages_install.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
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# INFORMATIONS
# ============
#
# * mysql-server is not installed by the install.py script as the database must
# be created before launching the install.py script
# Make sure only root can run our script
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
function continue() {
if [ $1 -ne 0 ] ; then
echo "Something bad happens during command"
echo "You should stop this step to see what is bad"
cont=""
while [ "x${cont}" == "x" ] ; do
echo "Continue [Y/n] ?"
read cont
if [ "x${cont}" == "xY" ] ; then
echo "OK, let's continue..."
elif [ "x${cont}" == "xn" ] ; then
echo "Exiting!"
exit 1
else
cont=""
fi
done
fi
}
pkg_list="\
git \
gcc\
libzmq-dev \
\
python \
python-dev \
python-pkg-resources \
python-setuptools \
python-pip \
python-zmq \
python-netifaces \
"
apt-get update
continue $?
apt-get install $pkg_list
continue $?
pip_list=" "
for elt in $pip_list
do
pip install $elt
continue $?
done