This repository was archived by the owner on Apr 15, 2022. It is now read-only.
forked from jlweand/DssVisualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstaller.sh
More file actions
executable file
·46 lines (39 loc) · 1.35 KB
/
installer.sh
File metadata and controls
executable file
·46 lines (39 loc) · 1.35 KB
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
# Copyright (C) 2017 Jamie Acosta, Robert McCain
#
# This file is part of DssVisualizer.
#
# DssVisualizer is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# DssVisualizer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with DssVisualizer. If not, see <http://www.gnu.org/licenses/>.
if ! apt-get update; then
echo "Unable to update apt repo. Exiting...";
exit 1;
fi;
if ! apt-get install python3 python3-pip python3-virtualenv mongodb mongodb-server -y; then
echo "Unable to install missing dependencies from apt repo. Exiting...";
exit 1;
fi;
python3 -m virtualenv env;
source env/bin/activate;
if ! pip3 install flask; then
echo "Unable to install flask using pip3. Exiting...";
deactivate;
exit 1;
fi;
if ! pip3 install pymongo; then
echo "Unable to install pymongo using pip3. Exiting...";
deactivate;
exit 1;
fi;
deactivate;
echo "Installation successful. Please use run.sh to run the web server.";
exit 0;