net.sh: Add 'upgrade' subcommand to upload a new release to the BSV

NOTE! (start|stop)node don't support operating on the BSV yet, so a
manual restart is required to get it running the new release
This commit is contained in:
Trent Nelson 2020-06-01 14:00:35 -06:00 committed by Trent Nelson
parent 1144190d8d
commit 27e2e3665a
1 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,7 @@ Operate a configured testnet
stopnode - Stop an individual node
startclients - Start client nodes only
update - Deploy a new software update to the cluster
upgrade - Upgrade software on bootstrap validator. (Restart bootstrap validator manually to run it)
start-specific options:
-T [tarFilename] - Deploy the specified release tarball
@ -981,6 +982,12 @@ stop)
update)
deployUpdate
;;
upgrade)
bootstrapValidatorIp="${validatorIpList[0]}"
prepareDeploy
deployBootstrapValidator "$bootstrapValidatorIp"
# (start|stop)Node need refactored to support restarting the bootstrap validator
;;
stopnode)
if [[ -z $nodeAddress ]]; then
usage "node address (-i) not specified"