forked from HuginnAcademy/SEI-1.04-G-ncelleme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseifix.sh
More file actions
203 lines (173 loc) · 7.84 KB
/
Copy pathseifix.sh
File metadata and controls
203 lines (173 loc) · 7.84 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
#!/bin/bash
#Colors
sari="\033[1;33m"
mavi="\033[1;36m"
kirmizi="\033[1;31m"
yesil="\033[1;32m"
f="\033[0m"
mavik="\033[36m"
############################
#Sürüm Güncelleme #
#v1.0-23.06.2022 #
#lalilax #
############################
clear
echo -e "${yesil}.__ .__ .__.__ ${f}"
echo -e "${yesil}| | _____ | | |__| | _____ ___ ___ ${f}"
echo -e "${yesil}| | \__ \ | | | | | \__ \ \ \/ / ${f}"
echo -e "${yesil}| |__/ __ \| |_| | |__/ __ \_> < ${f}"
echo -e "${yesil}|____(____ /____/__|____(____ /__/\_ \ ${f}"
echo -e "${yesil} \/ \/ \/ ${f}"
echo -e "${yesil}[SEI INSTALL 1.0.4 Exit Fix ] ${f}"
sleep 1
systemctl stop seid
cd
rm -r sei
rm -r sei-chain
sudo apt-get remove golang-go -y
sudo apt-get remove --auto-remove golang-go -y
cd $HOME
wget -O go1.18.1.linux-amd64.tar.gz https://golang.org/dl/go1.18.1.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.1.linux-amd64.tar.gz && rm go1.18.1.linux-amd64.tar.gz
echo 'export GOROOT=/usr/local/go' >> $HOME/.bash_profile
echo 'export GOPATH=$HOME/go' >> $HOME/.bash_profile
echo 'export GO111MODULE=on' >> $HOME/.bash_profile
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile && . $HOME/.bash_profile
go version
# 1.0.2
echo -e '\n\e[42mSEI\e[0m\n' && sleep 1
rm -rf $HOME/sei-chain
git clone --depth 1 --branch 1.0.2beta https://github.com/sei-protocol/sei-chain.git
cd sei-chain && make install
go build -o build/seid ./cmd/seid
chmod +x ./build/seid && sudo mv ./build/seid /usr/local/bin/seid
sleep 1
mv $HOME/go/bin/seid /usr/local/bin/
mv $HOME/sei-chain $HOME/sei
mv $HOME/.sei-chain $HOME/.sei
sleep 1
# config
seid config chain-id $CHAIN_ID
seid config keyring-backend file
# init
seid init $NODENAME --chain-id $CHAIN_ID
# download genesis and addrbook
wget -qO $HOME/.sei/config/genesis.json "https://raw.githubusercontent.com/sei-protocol/testnet/main/sei-testnet-2/genesis.json"
wget -qO $HOME/.sei/config/addrbook.json "https://raw.githubusercontent.com/sei-protocol/testnet/main/sei-testnet-2/addrbook.json"
# set minimum gas price
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0usei\"/" $HOME/.sei/config/app.toml
# set peers and seeds
SEEDS=""
PEERS="585727dac5df8f8662a8ff42052a9584a1f7ee95@165.22.25.77:26656,2f047e234cb8b99fe8b9fee0059a5bc45042bc97@95.216.84.188:26656,bab4849cf3918c37b04cd3714984d1765616a4b2@49.12.76.255:36656,ab955dc7f70d8613ab4b554868d4658fd70b797b@217.79.180.194:26656,39c4bcaded0d1d886f2788ae955f1939406f3e7d@65.108.198.54:26696,9db58dba3b6354177fb428caccf5167c616ad4a1@167.235.28.18:26656,2f2804434afda302c86eb89eca27503e49a8a260@65.21.131.215:26696,38b4d78c7d6582fb170f6c19330a7e37e6964212@194.163.189.114:46656,7c5ee0d66a15013f0a771055378c5316331f17ba@95.216.101.84:25646,6f71bcbe347069fc4df9b607f6b843226e8deb71@95.217.221.201:26656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.sei/config/config.toml
# enable prometheus
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.sei/config/config.toml
# config pruning
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.sei/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.sei/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.sei/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.sei/config/app.toml
sleep 1
echo -e '\n\e[42mservis\e[0m\n' && sleep 1
seid unsafe-reset-all
# create service
tee $HOME/seid.service > /dev/null <<EOF
[Unit]
Description=seid
After=network.target
[Service]
Type=simple
User=$USER
ExecStart=$(which seid) start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo mv $HOME/seid.service /etc/systemd/system/
# start service
sudo systemctl daemon-reload
sudo systemctl enable seid
sudo systemctl restart seid
clear
echo -e "${yesil}.__ .__ .__.__ ${f}"
echo -e "${yesil}| | _____ | | |__| | _____ ___ ___ ${f}"
echo -e "${yesil}| | \__ \ | | | | | \__ \ \ \/ / ${f}"
echo -e "${yesil}| |__/ __ \| |_| | |__/ __ \_> < ${f}"
echo -e "${yesil}|____(____ /____/__|____(____ /__/\_ \ ${f}"
echo -e "${yesil} \/ \/ \/ ${f}"
echo -e "${yesil}[SEI FIXER] ${f}"
echo -e "${yesil}Kurulum Devam Ediyor (Installation in progress) ${f}"
echo -e "${yesil}Kurulum Devam Ediyor (Installation in progress) ${f}"
echo -e "${yesil}Kurulum Devam Ediyor (Installation in progress) ${f}"
sleep 15
#1.0.3b Güncellemesi
cd
rm $HOME/sei -rf
git clone https://github.com/sei-protocol/sei-chain.git && cd $HOME/sei-chain
git checkout 1.0.3beta
wget -O go1.18.1.linux-amd64.tar.gz https://golang.org/dl/go1.18.1.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.1.linux-amd64.tar.gz && rm go1.18.1.linux-amd64.tar.gz
echo 'export GOROOT=/usr/local/go' >> $HOME/.bash_profile
echo 'export GOPATH=$HOME/go' >> $HOME/.bash_profile
echo 'export GO111MODULE=on' >> $HOME/.bash_profile
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile && . $HOME/.bash_profile
go version
export PATH=$PATH:$HOME/go/bin
$HOME/.bash_profile
make install
go build -o build/seid ./cmd/seid
chmod +x ./build/seid && sudo mv ./build/seid /usr/local/bin/seid
mv ~/go/bin/seid /usr/local/bin/seid
mv $HOME/sei-chain $HOME/sei
systemctl restart seid
clear
echo -e "${yesil}.__ .__ .__.__ ${f}"
echo -e "${yesil}| | _____ | | |__| | _____ ___ ___ ${f}"
echo -e "${yesil}| | \__ \ | | | | | \__ \ \ \/ / ${f}"
echo -e "${yesil}| |__/ __ \| |_| | |__/ __ \_> < ${f}"
echo -e "${yesil}|____(____ /____/__|____(____ /__/\_ \ ${f}"
echo -e "${yesil} \/ \/ \/ ${f}"
echo -e "${yesil}[SEI FIXER] ${f}"
echo -e "${yesil}Kurulum Devam Ediyor (Installation in progress) ${f}"
echo -e "${yesil}Kurulum Devam Ediyor (Installation in progress) ${f}"
echo -e "${yesil}Kurulum Devam Ediyor (Installation in progress) ${f}"
sleep 15
#1.0.4
systemctl stop seid
sudo apt-get remove golang-go -y
sudo apt-get remove --auto-remove golang-go -y
wget -O go1.18.1.linux-amd64.tar.gz https://golang.org/dl/go1.18.1.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.1.linux-amd64.tar.gz && rm go1.18.1.linux-amd64.tar.gz
echo 'export GOROOT=/usr/local/go' >> $HOME/.bash_profile
echo 'export GOPATH=$HOME/go' >> $HOME/.bash_profile
echo 'export GO111MODULE=on' >> $HOME/.bash_profile
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile && . $HOME/.bash_profile
go version
cd
rm -rf $HOME/sei-chain
git clone https://github.com/sei-protocol/sei-chain.git && cd $HOME/sei-chain
git checkout 1.0.4beta
make install
go build -o build/seid ./cmd/seid
chmod +x ./build/seid && sudo mv ./build/seid /usr/local/bin/seid
mv ~/go/bin/seid /usr/local/bin/seid
mv $HOME/sei-chain $HOME/sei
systemctl restart seid
journalctl -fu seid -o cat
clear
echo -e "${yesil}.__ .__ .__.__ ${f}"
echo -e "${yesil}| | _____ | | |__| | _____ ___ ___ ${f}"
echo -e "${yesil}| | \__ \ | | | | | \__ \ \ \/ / ${f}"
echo -e "${yesil}| |__/ __ \| |_| | |__/ __ \_> < ${f}"
echo -e "${yesil}|____(____ /____/__|____(____ /__/\_ \ ${f}"
echo -e "${yesil} \/ \/ \/ ${f}"
echo -e "${yesil}[SEI INSTALL 1.0.4 Exit Fix ] ${f}"
echo -e "${yesil}[YENI SURUM YUKLENDI] ${f}"
echo -e "${yesil}[NEW VERSION INSTALLED] ${f}"
echo -e "${yesil}journalctl -fu seid -o cat ${f}"