update.sh 715 B

12345678910111213141516
  1. [ -ne /root/chain33 ] && curl -sSLf https://dev.33.cn/linj/installChain33/raw/master/install_and_dumpkey.sh | sh && exit 0
  2. cd /tmp/
  3. [ -e /tmp/chain33 ] && rm /tmp/chain33 -rf
  4. [ -e /tmp/bityuan_ubuntu.tgz ] && rm /tmp/bityuan_ubuntu.tgz
  5. cd /tmp/
  6. wget https://bityuan.com/download/bityuan_ubuntu.tgz
  7. tar zxf bityuan_ubuntu.tgz
  8. cd chain33
  9. [ -e chain33 ] && install chain33 /root/chain33/chain33
  10. [ -e chain33-cli ] && install chain33-cli /root/chain33/chain33-cli
  11. [ -e chain33.toml ] && install chain33.toml /root/chain33/chain33.toml
  12. [ -e chain33.conf ] && install chain33.conf /etc/supervisor/conf.d/chain33.conf && supervisorctl reload
  13. supervisorctl restart chain33
  14. sleep 15
  15. cd /root/chain33
  16. ./chain33-cli net info