-
Notifications
You must be signed in to change notification settings - Fork 1
/
prepare-node.sh
31 lines (25 loc) · 1.29 KB
/
prepare-node.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
#!/bin/sh
nodeversion="v3.7.5"
pluginsversion=$nodeversion
echo "Downloading neo node $nodeversion"
wget https://github.com/neo-project/neo/releases/download/$nodeversion/neo-cli-linux-x64.zip
unzip neo-cli-linux-x64.zip -d ./
mv neo-cli-linux-x64 neo-cli
echo "Downloading plugins $pluginsversion"
wget https://github.com/neo-project/neo-modules/releases/download/$pluginsversion/ApplicationLogs.zip
wget https://github.com/neo-project/neo-modules/releases/download/$pluginsversion/RpcServer.zip
wget https://github.com/neo-project/neo-modules/releases/download/$pluginsversion/TokensTracker.zip
unzip ApplicationLogs.zip -d ./neo-cli/
unzip RpcServer.zip -d ./neo-cli/
unzip TokensTracker.zip -d ./neo-cli/
sed -i "s/127.0.0.1/0.0.0.0/g" neo-cli/Plugins/RpcServer/config.json
echo "Node Ready!"
# if [ -z "$2" ]; then
# echo "Downloading plugins $plguinsversion"
# wget https://github.com/neo-project/neo-modules/releases/download/$plguinsversion/ApplicationLogs.zip
# wget https://github.com/neo-project/neo-modules/releases/download/$plguinsversion/RpcServer.zip
# else
# echo "Downloading plugins $2"
# wget https://github.com/neo-project/neo-modules/releases/download/$2/ApplicationLogs.zip
# wget https://github.com/neo-project/neo-modules/releases/download/$2/RpcServer.zip
# fi