forked from rwth-acis/CAE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
74 lines (60 loc) · 2.61 KB
/
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
64
65
66
67
68
69
70
71
72
73
74
sudo apt-get install -y supervisor
sudo cp ./supervisor/supervisord.conf /etc/supervisor/supervisord.conf
#absolute path is required here
sudo ln -sf $HOME/acis/CAE/conf/yjs.conf /etc/supervisor/conf.d/yjs.conf
sudo ln -sf $HOME/acis/CAE/conf/role.conf /etc/supervisor/conf.d/role.conf
sudo ln -sf $HOME/acis/CAE/conf/services.conf /etc/supervisor/conf.d/services.conf
sudo ln -sf $HOME/acis/CAE/conf/services_debug.conf /etc/supervisor/conf.d/services_debug.conf
sudo ln -sf $HOME/acis/CAE/conf/widgets.conf /etc/supervisor/conf.d/widgets.conf
sudo ln -sf $HOME/acis/CAE/conf/myCAE.conf /etc/supervisor/conf.d/myCAE.conf
sudo ln -sf $HOME/acis/CAE/conf/syncmeta_dev.conf /etc/supervisor/conf.d/syncmeta_dev.conf
sudo ln -sf $HOME/acis/CAE/conf/wireframing_dev.conf /etc/supervisor/conf.d/wireframing_dev.conf
sudo ln -sf $HOME/acis/CAE/conf/wireframing_testDev.conf /etc/supervisor/conf.d/wireframing_testDev.conf
sudo ln -sf $HOME/acis/CAE/conf/wireframing_widget.conf /etc/supervisor/conf.d/wireframing_widget.conf
sudo ln -sf $HOME/acis/CAE/conf/jenkins.conf /etc/supervisor/conf.d/jenkins.conf
#create the log folder if not already here
if [ ! -d "log" ]; then
mkdir log
fi
if [ ! -d "CAE-Model-Persistence-Service" ]; then
echo "=> Cloning CAE-Model-Persistence-Service"
git clone https://github.com/rwth-acis/CAE-Model-Persistence-Service.git > /dev/null
echo "DONE"
else
echo "=> CAE-Model-Persistence-Service already cloned."
fi
if [ ! -d "CAE-Simple-Model-Representation" ]; then
echo "=> Cloning CAE-Simple-Model-Representation"
https://github.com/rwth-acis/CAE-Simple-Model-Representation.git > /dev/null
echo "DONE"
else
echo "=> CAE-Simple-Model-Representation already cloned."
fi
if [ ! -d "CAE-Model-Persistence-Service" ]; then
echo "=> Cloning CAE-Model-Persistence-Service"
git clone https://github.com/rwth-acis/CAE-Model-Persistence-Service.git > /dev/null
echo "DONE"
else
echo "=> CAE-Model-Persistence-Service already cloned."
fi
if [ ! -d "syncmeta" ]; then
echo " => Cloning Syncmeta"
git clone https://github.com/rwth-acis/syncmeta.git > /dev/null
echo "DONE"
else
echo "=> syncmeta already cloned."
fi
if [ ! -d "CAE-Frontend" ]; then
echo "=> Cloning CAE Frontend widget"
git clone https://github.com/rwth-acis/CAE-Frontend.git > /dev/null
echo "DONE"
else
echo "=> CAE Frontend repository already cloned"
fi
if [ ! -d "CAE-WireframingEditor" ]; then
echo "=> Cloning CAE-WireframingEditor"
git clone https://github.com/rwth-acis/CAE-WireframingEditor.git > /dev/null
echo "DONE"
else
echo "=> CAE-WireframingEditor already cloned."
fi