adding paths to bash profile to make them available

pull/3/head
alok 7 years ago
parent e428e18322
commit d8a9a34d58
  1. 3
      aws-scripts/run_instances.sh
  2. 9
      aws-scripts/setup_golang.sh
  3. 8
      aws-scripts/setup_golang_path.sh

@ -1,8 +1,7 @@
#!/bin/bash -x #!/bin/bash -x
cd /home/ec2-user/projects/src/harmony-benchmark cd /home/ec2-user/projects/src/harmony-benchmark
# GOROOT is the location where Go package is installed on your system # GOROOT is the location where Go package is installed on your system
source ~/.bash_profile
. aws-scripts/setup_golang_path.sh
./deploy_linux.sh local_iplist.txt ./deploy_linux.sh local_iplist.txt
./send_txn.sh ./send_txn.sh

@ -2,4 +2,11 @@
sudo yum update -y sudo yum update -y
sudo yum install -y golang sudo yum install -y golang
. aws-scripts/setup_golang.sh # GOROOT is the location where Go package is installed on your system
echo "export GOROOT=/usr/lib/golang" >> $HOME/.bash_profile
# GOPATH is the location of your work directory
echo "export GOPATH=$HOME/projects" >> $HOME/.bash_profile
# PATH in order to access go binary system wide
echo "export PATH=$PATH:$GOROOT/bin" >> $HOME/.bash_profile

@ -1,8 +0,0 @@
# GOROOT is the location where Go package is installed on your system
export GOROOT=/usr/lib/golang
# GOPATH is the location of your work directory
export GOPATH=$HOME/projects
# PATH in order to access go binary system wide
export PATH=$PATH:$GOROOT/bin
Loading…
Cancel
Save