-
Notifications
You must be signed in to change notification settings - Fork 3
/
installation.sh
executable file
·75 lines (57 loc) · 1.86 KB
/
installation.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
#!/bin/bash
#
# Installations-Script für NubiSave auf Debian bzw. Derivaten (inkl. Ubuntu)
#
# DEPRECATED - use Debian package if possible!
if [ ! -x /usr/bin/sudo ]; then
echo "Fehler: sudo muss manuell installiert und konfiguriert werden." >&2
exit 1
fi
read -p "SPACE-Plattformdienste installieren? (j/N) " antwort
if [ "$antwort" == "j" ]
then
sudo bash -c "echo 'deb http://serviceplatform.org/packages/ ./' >> /etc/apt/sources.list.d/space.list"
sudo apt-get update
#sudo apt-get install space
sudo apt-get install mysql-server mysql-client conqo conqotool
else
echo "Ohne SPACE weiter - ConQo + Contract Wizard müssen vorhanden sein oder von extern genutzt werden."
fi
read -p "SPACE-Plattformdienste konfigurieren? (j/N) " antwort
if [ "$antwort" == "j" ]
then
echo "Registrierung der Speicherdienstanbieter..."
for service in services/CloudServices/*.wsml; do
servicename=$(basename "$service")
echo "-------------------------------------------"
echo "Registriere Service: $servicename"
conqotool -u admin register "$service"
done
#ontologiepath=`find /var/lib 2>/dev/null | grep Matchmaker/ontologies | head -n 1 `cloud
ontologiepath=/var/lib/tomcat6/webapps/Matchmaker/ontologies/
echo
echo
echo "Kopiere CloudStorage-Ontologie"
sudo cp services/CloudStorage.wsml $ontologiepath
fi
echo
echo
echo "Installiere Entwicklerpakete (openJDK, FUSE, ...)"
sudo apt-get install openjdk-6-jdk libfuse-dev python-simplejson python-setuptools python-oauth python-httplib2
sudo easy_install 'http://pypi.python.org/packages/2.6/p/poster/poster-0.4-py2.6.egg#md5=f69a6be30737ad5d652a602f3af005ac'
echo
echo
echo "Kompilieren des Core-Moduls"
cd splitter/
make
cd ..
echo
echo
echo "Installation von CloudFusion"
git submodule init
git submodule update
cd CloudFusion
python setup.py build
sudo python setup.py install
cd ..
echo "Installation abgeschlossen"