This commit is contained in:
Bob Mottram 2015-09-30 12:31:13 +01:00
parent b20804ddc6
commit 469c849d44
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ function install_ipfs {
if [ ! -f /home/$MY_USERNAME/go/bin/ipfs ]; then if [ ! -f /home/$MY_USERNAME/go/bin/ipfs ]; then
sudo apt-get -y install golang libpam0g-dev fuse sudo apt-get -y install golang libpam0g-dev fuse
if ! grep -q "GOPATH/bin" /home/$MY_USERNAME/.bashrc; then if ! grep -q "GOPATH/bin" /home/$MY_USERNAME/.bashrc; then
echo 'export GOPATH=/home/git/go' >> /home/$MY_USERNAME/.bashrc echo "export GOPATH=/home/$MY_USERNAME/go" >> /home/$MY_USERNAME/.bashrc
echo 'export PATH="$GOPATH/bin:$PATH:";' >> /home/$MY_USERNAME/.bashrc echo 'export PATH="$GOPATH/bin:$PATH:";' >> /home/$MY_USERNAME/.bashrc
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc
. ~/.bashrc . ~/.bashrc