You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
830 B

  1. #!/bin/bash
  2. set -euo pipefail
  3. IFS=$'\n\t'
  4. debora open "[::]:46661"
  5. debora --group default.upgrade status
  6. printf "\n\nShutting down barak default port...\n\n"
  7. sleep 3
  8. debora --group default.upgrade close "[::]:46660"
  9. debora --group default.upgrade run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; git pull origin develop; make"
  10. debora --group default.upgrade run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; mkdir -p ~/.barak/logs"
  11. debora --group default.upgrade run --bg --label barak -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; barak --config=cmd/barak/seed 2>&1 | stdinwriter -outpath ~/.barak/logs/barak.log"
  12. printf "\n\nTesting new barak...\n\n"
  13. sleep 3
  14. debora status
  15. printf "\n\nShutting down old barak...\n\n"
  16. sleep 3
  17. debora --group default.upgrade quit
  18. printf "Done!\n"