@@ -137,24 +137,6 @@ sudo mv ./sui-node /usr/local/bin/
137
137
sudo mv ./sui /usr/local/bin/
138
138
sudo mv ./sui-tool /usr/local/bin/
139
139
140
- cd $HOME
141
- git clone https://github.com/MystenLabs/sui.git --branch $NETWORK_ID --single-branch
142
- cd sui
143
- # git remote add upstream https://github.com/MystenLabs/sui
144
- # git fetch upstream
145
- # git checkout -B testnet --track upstream/testnet
146
-
147
- # cargo build -p sui-node -p sui --release
148
- # sudo mv ~/sui/target/release/sui-node /usr/local/bin/
149
- # sudo mv ~/sui/target/release/sui /usr/local/bin/
150
-
151
- # Downloading sui binaries from Github
152
- wget https://github.com/MystenLabs/sui/releases/download/mainnet-v1.27.4/sui-mainnet-v1.27.4-ubuntu-x86_64.tgz
153
- tar -xvzf sui-mainnet-v1.27.4-ubuntu-x86_64.tgz
154
- sudo mv ./sui-node /usr/local/bin/
155
- sudo mv ./sui /usr/local/bin/
156
-
157
-
158
140
# 5. Update Configs
159
141
echo " [LOG] update configs"
160
142
mkdir -p $HOME /.sui/
@@ -163,7 +145,7 @@ cd $HOME/.sui/
163
145
# Genesis for release channel (testnet|mainnet|devnet)
164
146
wget -O genesis.blob https://github.com/MystenLabs/sui-genesis/raw/main/$NETWORK_ID /genesis.blob
165
147
166
- cp $HOME /sui/crates/sui-config/data/fullnode-template.yaml $HOME /.sui/fullnode .yaml
148
+ wget -O $HOME /. sui/fullnode.yaml https://raw.githubusercontent.com/MystenLabs/sui/ $NETWORK_ID / crates/sui-config/data/fullnode-template.yaml
167
149
sed -i ' s/127.0.0.1/0.0.0.0/' $HOME /.sui/fullnode.yaml
168
150
sed -i " s|db-path:.*|db-path: $HOME /.sui/db|g" $HOME /.sui/fullnode.yaml
169
151
sed -i " s|genesis-file-location:.*|genesis-file-location: $HOME /.sui/genesis.blob|g" $HOME /.sui/fullnode.yaml
0 commit comments