-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·35 lines (27 loc) · 955 Bytes
/
run.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
#!/bin/bash
trackers="127.0.0.1:7001"
domain="testdomain"
classes="testclass1 testclass2"
sleep 5 #wait for node to start
sudo -u mogile mogilefsd --daemon -c /etc/mogilefs/mogilefsd.conf
mogadm --trackers=$trackers host add mogilestorage --ip=mogile-node --port=7500 --status=alive
mogadm --trackers=$trackers device add mogilestorage 1
mogadm --trackers=$trackers device add mogilestorage 2
if [ "$domain" != "" ]
then
mogadm --trackers=$trackers domain add $domain
mogadm class modify sbf default --replpolicy='MultipleDevices()'
# Add all given classes
if [ "$classes" != "" ]
then
for class in $classes
do
mogadm --trackers=$trackers class add $domain $class --replpolicy="MultipleDevices()" --mindevcount=1
done
fi
fi
mogadm --trackers=$trackers check
git clone https://github.com/mogilefs-moji/moji.git
cd moji
echo "Inital complete. Now you can run 'mvn integration-test' to ensure everything is right."
bash