go path
This commit is contained in:
parent
b20804ddc6
commit
469c849d44
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue