-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_neocompiler.sh
51 lines (47 loc) · 2.44 KB
/
setup_neocompiler.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
#!/bin/bash
set -e
PORT_9000=`echo "ecoservices-neo3.neocompiler.io"`
PORT_10000=`echo "compilers-neo3.neocompiler.io"`
PORT_30333=`echo "node1-neo3.neocompiler.io"`
PORT_30334=`echo "node2-neo3.neocompiler.io"`
PORT_30337=`echo "node3-neo3.neocompiler.io"`
# personalized javascript url
P_URL="assets/info/personalized.js"
echo " personalizedNodes = [" > $P_URL
echo " {" >> $P_URL
echo " \"protocol\": \"https\"," >> $P_URL
echo " \"url\": \"$PORT_10000\"," >> $P_URL
echo " \"location\": \"worldwide\"," >> $P_URL
echo " \"locale\": \"worldwide\"," >> $P_URL
echo " \"type\": \"ecocompilers\"" >> $P_URL
echo " }," >> $P_URL
echo " {" >> $P_URL
echo " \"protocol\": \"https\"," >> $P_URL
echo " \"url\": \"$PORT_9000\"," >> $P_URL
echo " \"location\": \"worldwide\"," >> $P_URL
echo " \"locale\": \"worldwide\"," >> $P_URL
echo " \"type\": \"ecoservices\"" >> $P_URL
echo " }," >> $P_URL
echo " {" >> $P_URL
echo " \"protocol\": \"https\"," >> $P_URL
echo " \"url\": \"$PORT_30333\"," >> $P_URL
echo " \"location\": \"worldwide\"," >> $P_URL
echo " \"locale\": \"worldwide\"," >> $P_URL
echo " \"type\": \"RPC\"" >> $P_URL
echo " }," >> $P_URL
echo " {" >> $P_URL
echo " \"protocol\": \"https\"," >> $P_URL
echo " \"url\": \"$PORT_30334\"," >> $P_URL
echo " \"location\": \"worldwide\"," >> $P_URL
echo " \"locale\": \"worldwide\"," >> $P_URL
echo " \"type\": \"RPC\"" >> $P_URL
echo " }," >> $P_URL
echo " {" >> $P_URL
echo " \"protocol\": \"https\"," >> $P_URL
echo " \"url\": \"$PORT_30337\"," >> $P_URL
echo " \"location\": \"worldwide\"," >> $P_URL
echo " \"locale\": \"worldwide\"," >> $P_URL
echo " \"type\": \"RPC\"" >> $P_URL
echo " }" >> $P_URL
echo " ]" >> $P_URL
echo "Finished updating $P_URL"