From 165fb13b2f7d95b8e1cb6a1ef272c578e8ccc72c Mon Sep 17 00:00:00 2001 From: alok Date: Sat, 23 Jun 2018 16:57:42 -0700 Subject: [PATCH] setting HOME right --- aws-scripts/setup_golang.sh | 2 +- deploy_one_instance.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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