Skip to content

Commit 437a29c

Browse files
author
xianhuawei
authored
get testnet latest version from README_testnet.md (#253)
1 parent f05d07f commit 437a29c

File tree

5 files changed

+6
-22
lines changed

5 files changed

+6
-22
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
Here are the software versions we use:
2121

22-
- IoTeX MainNet: v1.10.1
22+
- MainNet: v1.10.1
2323

2424
## <a name="testnet"/>Join TestNet
2525
To start and run a testnet node, please click [**Join Testnet**](https://github.com/iotexproject/iotex-bootstrap/blob/master/README_testnet.md)
@@ -274,11 +274,6 @@ sudo bash # If your docker requires root privilege
274274
bash <(curl -s https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/master/scripts/setup_fullnode.sh) plugin=gateway
275275
```
276276

277-
Currently, auto upgrade is turned on by default. To disable this feature, enter `N` when asked following question:
278-
```bash
279-
Do you want to auto update the node [Y/N] (Default: Y)? N
280-
```
281-
282277
To stop auto upgdrade cron job and iotex server program, you can run
283278
```bash
284279
sudo bash # If your docker requires root privilege

README_CN.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,6 @@ sudo bash # If your docker requires root privilege
250250
bash <(curl -s https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/master/scripts/setup_fullnode.sh) plugin=gateway
251251
```
252252

253-
目前,节点自动升级默认开启。如果需要禁用此功能,请在系统询问以下问题时输入“N”:
254-
```bash
255-
Do you want to auto update the node [Y/N] (Default: Y)? N
256-
```
257-
258253
如果需要停止自动升级 cron job 和 iotex 服务器程序,您可以运行以下指令:
259254
```bash
260255
sudo bash # If your docker requires root privilege

README_CN_testnet.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,6 @@ sudo bash # If your docker requires root privilege
248248
bash <(curl -s https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/master/scripts/setup_fullnode.sh) testnet plugin=gateway
249249
```
250250

251-
目前,节点自动升级默认开启。如果需要禁用此功能,请在系统询问以下问题时输入“N”:
252-
```bash
253-
Do you want to auto update the node [Y/N] (Default: Y)? N
254-
```
255-
256251
如果需要停止自动升级 cron job 和 iotex 服务器程序,您可以运行以下指令:
257252
```bash
258253
sudo bash # If your docker requires root privilege

README_testnet.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
Here are the software versions we use:
2020

21-
- IoTeX TestNet: v1.11.0-rc3
21+
- TestNet: v1.11.0-rc3
2222

2323
**Note**
2424
To start and run a mainnet node, please click [**Join Mainnet**](https://github.com/iotexproject/iotex-bootstrap/blob/master/README.md)
@@ -272,11 +272,6 @@ sudo bash # If your docker requires root privilege
272272
bash <(curl -s https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/master/scripts/setup_fullnode.sh) testnet plugin=gateway
273273
```
274274

275-
Currently, auto upgrade is turned on by default. To disable this feature, enter `N` when asked following question:
276-
```bash
277-
Do you want to auto update the node [Y/N] (Default: Y)? N
278-
```
279-
280275
To stop auto upgdrade cron job and iotex server program, you can run
281276
```bash
282277
sudo bash # If your docker requires root privilege

scripts/setup_fullnode.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@ function main() {
396396

397397
# Get the latest version.
398398
lastversion=$(curl -sS https://api.github.com/repos/iotexproject/iotex-core/releases/latest|grep -oP '(?<="tag_name": ")[^"]*')
399+
if [ "$_GREP_STRING_" = "TestNet" ];then
400+
lastversion=$(curl -sS https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/master/README_testnet.md|grep "^- $_GREP_STRING_:"|awk '{print $3}')
401+
fi
402+
399403
echo -e "Current operating environment: ${YELLOW} $env ${NC}"
400404
read -p "Install or Upgrade Version; if null the latest [$lastversion]: " ver
401405
version=${ver:-"$lastversion"} # if $ver ;then version=$ver;else version=$lastversion"

0 commit comments

Comments
 (0)