forked from bio-ontology-research-group/aberowl-meta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall
executable file
·41 lines (28 loc) · 1.19 KB
/
install
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
#!/bin/bash
echo '[:] checking dependencies'
type redis-cli >/dev/null 2>&1 || { echo >&2 "redis-server not installed. Exiting."; exit 1; }
type node >/dev/null 2>&1 || { echo >&2 "Node not installed. Exiting."; exit 1; }
type npm >/dev/null 2>&1 || { echo >&2 "npm not installed. Exiting. "; exit 1; }
type npm >/dev/null 2>&1 || { echo >&2 "groovy not installed. Exiting. "; exit 1; }
echo '[:] installing aberowl'
echo '[:] Downloading submodules'
git clone https://github.com/bio-ontology-research-group/AberOWL.git aberowl-server
git clone https://github.com/bio-ontology-research-group/aberowl-orepo.git aberowl-web
git clone https://github.com/bio-ontology-research-group/aberowl-sync aberowl-sync
cd aberowl-server
git submodule init
git submodule update
cd ../aberowl-sync
git submodule init
git submodule update
cd ../
echo '[:] Installing web dependencies'
cd aberowl-web
npm install
cd ../
echo '[:] Linking ontologies folders'
ln -s ../aberowl-server/onts/ aberowl-web/public/onts
ln -s ../aberowl-server/onts/ aberowl-sync/onts
ln -s ../../aberowl-server/onts/ aberowl-sync/db/onts
echo '[:] Done'
echo 'That is about it for the automagic side for now. Check the readme for other stuff.'