Browse Source

upgrade_barak script, still needs more work

pull/102/head
Jae Kwon 10 years ago
parent
commit
e0c7947544
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      scripts/unsafe_upgrade_barak.sh

+ 15
- 0
scripts/unsafe_upgrade_barak.sh View File

@ -0,0 +1,15 @@
#!/bin/sh
debora open "[::]:46661"
debora --group default.upgrade list # TODO replace with command to test with
echo "Will shut down barak default port..."
sleep 10
debora --group default.upgrade close "[::]:46660"
debora --group default.upgrade run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; git pull origin develop; make"
debora --group default.upgrade run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; mkdir -p ~/.barak/logs"
debora --group default.upgrade run --bg --label barak -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; barak --options-file=cmd/barak/seed0 | filelogger -outpath ~/.barak/logs/barak.log"
echo "Testing new barak..."
debora list
sleep 10
echo "Will shut down old barak..."
debora --group default.upgrade quit

Loading…
Cancel
Save