Skip to content

Commit 8ca1fe4

Browse files
committed
Downloading config file directly from github, avoiding cloning repos
1 parent 2e6b9ff commit 8ca1fe4

File tree

1 file changed

+1
-19
lines changed
  • lib/sui/lib/assets/user-data

1 file changed

+1
-19
lines changed

lib/sui/lib/assets/user-data/node.sh

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -137,24 +137,6 @@ sudo mv ./sui-node /usr/local/bin/
137137
sudo mv ./sui /usr/local/bin/
138138
sudo mv ./sui-tool /usr/local/bin/
139139

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-
158140
# 5. Update Configs
159141
echo "[LOG] update configs"
160142
mkdir -p $HOME/.sui/
@@ -163,7 +145,7 @@ cd $HOME/.sui/
163145
# Genesis for release channel (testnet|mainnet|devnet)
164146
wget -O genesis.blob https://github.com/MystenLabs/sui-genesis/raw/main/$NETWORK_ID/genesis.blob
165147

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
167149
sed -i 's/127.0.0.1/0.0.0.0/' $HOME/.sui/fullnode.yaml
168150
sed -i "s|db-path:.*|db-path: $HOME/.sui/db|g" $HOME/.sui/fullnode.yaml
169151
sed -i "s|genesis-file-location:.*|genesis-file-location: $HOME/.sui/genesis.blob|g" $HOME/.sui/fullnode.yaml

0 commit comments

Comments
 (0)