forked from BrandonHaynes/scidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebuild.sh
32 lines (21 loc) · 915 Bytes
/
rebuild.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
nodelist=$(cat /root/nodes.txt)
nodes=${nodelist/$'\n'/ }
cd /mnt/scidb
/opt/scidb/14.8/bin/scidb.py stopall mydb
#deployment/deploy.sh prepare_toolchain master
#deployment/deploy.sh prepare_coordinator master
#su scidb -c "./run.py setup -f"
su scidb -c "./run.py make -j4"
su scidb -c "./run.py make_packages /tmp/packages -f"
while read node; do
scp -r /mnt/scidb/stage/build/debian/scidb-14.8-plugins/mnt/scidb/stage/install/* $node:/opt/scidb/14.8
done < /root/nodes.txt
deployment/deploy.sh scidb_install /tmp/packages $nodes
/opt/scidb/14.8/bin/scidb.py stopall mydb
while read node; do
scp -r /mnt/scidb/stage/install/* $node:/opt/scidb/14.8
done < /root/nodes.txt
/opt/scidb/14.8/bin/scidb.py stopall mydb
deployment/deploy.sh scidb_prepare scidb "scidb" mydb mydb mydb /mnt/scidb/db 1 default 1 $nodes
/opt/scidb/14.8/bin/scidb.py initall mydb -f
/opt/scidb/14.8/bin/scidb.py startall mydb