diff --git a/src/freedombone b/src/freedombone index 754517f5..4b0ba91a 100755 --- a/src/freedombone +++ b/src/freedombone @@ -10338,7 +10338,7 @@ function install_ipfs { if ! grep -q 'GOPATH/bin' ~/.bashrc; then echo 'export PATH="$GOPATH/bin:$PATH:";' >> ~/.bashrc - echo 'export PATH="$PATH:/usr/local/opt/go/libexec/bin";' >> ~/.bashrc + echo 'export PATH="$PATH:$GOPATH/src/github.com/ipfs/go-ipfs/cmd";' >> ~/.bashrc fi . ~/.bashrc @@ -10346,7 +10346,7 @@ function install_ipfs { if ! grep -q "GOPATH=" /home/$MY_USERNAME/.bashrc; then echo 'export GOPATH=/home/git/go' >> /home/$MY_USERNAME/.bashrc echo 'export PATH="$GOPATH/bin:$PATH:";' >> /home/$MY_USERNAME/.bashrc - echo 'export PATH="$PATH:/usr/local/opt/go/libexec/bin";' >> /home/$MY_USERNAME/.bashrc + echo 'export PATH="$PATH:$GOPATH/src/github.com/ipfs/go-ipfs/cmd";' >> /home/$MY_USERNAME/.bashrc chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc fi @@ -10397,8 +10397,8 @@ function install_ipfs { echo 'Type=simple' >> /etc/systemd/system/ipfs.service echo 'User=git' >> /etc/systemd/system/ipfs.service echo 'Group=git' >> /etc/systemd/system/ipfs.service - echo 'WorkingDirectory=/home/git/go/src/github.com/ipfs/go-ipfs' >> /etc/systemd/system/ipfs.service - echo 'ExecStart=/home/git/go/bin/ipfs daemon --mount' >> /etc/systemd/system/ipfs.service + echo 'WorkingDirectory=/home/git/go/src/github.com/ipfs/go-ipfs/cmd' >> /etc/systemd/system/ipfs.service + echo 'ExecStart=/home/git/go/src/github.com/ipfs/go-ipfs/cmd/ipfs daemon --mount' >> /etc/systemd/system/ipfs.service echo 'Restart=on-failure' >> /etc/systemd/system/ipfs.service echo 'Environment="USER=git" "HOME=/home/git" "GOPATH=/home/git/go"' >> /etc/systemd/system/ipfs.service echo '' >> /etc/systemd/system/ipfs.service