diff --git a/aws-scripts/setup_golang.sh b/aws-scripts/setup_golang.sh index 2c57ed8d8..5857ad802 100755 --- a/aws-scripts/setup_golang.sh +++ b/aws-scripts/setup_golang.sh @@ -2,7 +2,7 @@ sudo yum update -y sudo yum install -y golang - +HOME=/home/ec2-user echo "now setting up go-lang paths" # GOROOT is the location where Go package is installed on your system echo "export GOROOT=/usr/lib/golang" >> $HOME/.bash_profile diff --git a/deploy_one_instance.sh b/deploy_one_instance.sh index bd7b37343..f5ac9037f 100755 --- a/deploy_one_instance.sh +++ b/deploy_one_instance.sh @@ -10,6 +10,9 @@ sudo sysctl -w net.ipv4.tcp_mem='65536 873800 1534217728'; ./kill_node.sh source ~/.bash_profile +export GOROOT=/usr/lib/golang +export GOPATH=$HOME/projects +export PATH=$PATH:$GOROOT/bin python aws-scripts/preprocess_peerlist.py FILE='isTransaction.txt' config=$1