Skip to content

Commit

Permalink
Update install_btfs.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhimin He authored and ZhiminHeGit committed May 3, 2019
1 parent d017e42 commit 2011582
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions install_btfs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash
export GOPATH=${HOME}/go
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:$GOPATH/bin
export GO111MODULE=on
export EDITOR=vim
export GITHUB_TOKEN=9e2b088b6091e4452696aac6503f30d4c16c7c7c
git config --global url."https://${GITHUB_TOKEN}:[email protected]/TRON-US".insteadOf "https://github.com/TRON-US"
make install
btfs init
# swarm key
Expand All @@ -14,3 +21,4 @@ btfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET",
btfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials "[\"true\"]"
btfs config Addresses.API /ip4/0.0.0.0/tcp/5001
btfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
echo install successful, please run 'btfs daemon'

0 comments on commit 2011582

Please sign in to comment.