-
Notifications
You must be signed in to change notification settings - Fork 0
/
sui_update080.sh
25 lines (25 loc) · 2.04 KB
/
sui_update080.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
#!/bin/bash
echo "------------------------------------------------------------------------------------------------"
echo -e "\e[1;35m██████████████████████████████████████████████████\e[0m"
echo -e "\e[1;35m█────█─███────█────██───█─██─█─██─█────█────██───█\e[0m"
echo -e "\e[1;35m█─████─███─██─█─██──██─██─█─██──█─█─██─█─██──█─███\e[0m"
echo -e "\e[1;35m█─█──█─███────█─██──██─██──███─█──█─██─█─██──█───█\e[0m"
echo -e "\e[1;35m█─██─█─███─██─█─██──██─██─█─██─██─█─██─█─██──█─███\e[0m"
echo -e "\e[1;35m█────█───█─██─█────██───█─██─█─██─█────█────██───█\e[0m"
echo -e "\e[1;35m██████████████████████████████████████████████████\e[0m"
echo "------------------------------------------------------------------------------------------------"
systemctl stop suid
rm -rf /var/sui/db/* /var/sui/genesis.blob $HOME/sui
source $HOME/.cargo/env
cd $HOME
git clone https://github.com/MystenLabs/sui.git
cd sui
git remote add upstream https://github.com/MystenLabs/sui
git fetch upstream
git checkout -B devnet --track upstream/devnet
cargo build -p sui-node -p sui --release
mv ~/sui/target/release/sui-node /usr/local/bin/
mv ~/sui/target/release/sui /usr/local/bin/
wget -O /var/sui/genesis.blob https://github.com/MystenLabs/sui-genesis/raw/main/devnet/genesis.blob
systemctl restart suid
echo "------------------------------------------------------------------------------------------------"