From 27e2e3665a67a5b4d9c6e648902f1a2f42496551 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Mon, 1 Jun 2020 14:00:35 -0600 Subject: [PATCH] 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 --- net/net.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/net/net.sh b/net/net.sh index 04d63aed6e..cd92e33a29 100755 --- a/net/net.sh +++ b/net/net.sh @@ -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"