|
@@ -10338,7 +10338,7 @@ function install_ipfs {
|
10338
|
10338
|
|
10339
|
10339
|
if ! grep -q 'GOPATH/bin' ~/.bashrc; then
|
10340
|
10340
|
echo 'export PATH="$GOPATH/bin:$PATH:";' >> ~/.bashrc
|
10341
|
|
- echo 'export PATH="$PATH:/usr/local/opt/go/libexec/bin";' >> ~/.bashrc
|
|
10341
|
+ echo 'export PATH="$PATH:$GOPATH/src/github.com/ipfs/go-ipfs/cmd";' >> ~/.bashrc
|
10342
|
10342
|
fi
|
10343
|
10343
|
. ~/.bashrc
|
10344
|
10344
|
|
|
@@ -10346,7 +10346,7 @@ function install_ipfs {
|
10346
|
10346
|
if ! grep -q "GOPATH=" /home/$MY_USERNAME/.bashrc; then
|
10347
|
10347
|
echo 'export GOPATH=/home/git/go' >> /home/$MY_USERNAME/.bashrc
|
10348
|
10348
|
echo 'export PATH="$GOPATH/bin:$PATH:";' >> /home/$MY_USERNAME/.bashrc
|
10349
|
|
- echo 'export PATH="$PATH:/usr/local/opt/go/libexec/bin";' >> /home/$MY_USERNAME/.bashrc
|
|
10349
|
+ echo 'export PATH="$PATH:$GOPATH/src/github.com/ipfs/go-ipfs/cmd";' >> /home/$MY_USERNAME/.bashrc
|
10350
|
10350
|
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc
|
10351
|
10351
|
fi
|
10352
|
10352
|
|
|
@@ -10397,8 +10397,8 @@ function install_ipfs {
|
10397
|
10397
|
echo 'Type=simple' >> /etc/systemd/system/ipfs.service
|
10398
|
10398
|
echo 'User=git' >> /etc/systemd/system/ipfs.service
|
10399
|
10399
|
echo 'Group=git' >> /etc/systemd/system/ipfs.service
|
10400
|
|
- echo 'WorkingDirectory=/home/git/go/src/github.com/ipfs/go-ipfs' >> /etc/systemd/system/ipfs.service
|
10401
|
|
- echo 'ExecStart=/home/git/go/bin/ipfs daemon --mount' >> /etc/systemd/system/ipfs.service
|
|
10400
|
+ echo 'WorkingDirectory=/home/git/go/src/github.com/ipfs/go-ipfs/cmd' >> /etc/systemd/system/ipfs.service
|
|
10401
|
+ echo 'ExecStart=/home/git/go/src/github.com/ipfs/go-ipfs/cmd/ipfs daemon --mount' >> /etc/systemd/system/ipfs.service
|
10402
|
10402
|
echo 'Restart=on-failure' >> /etc/systemd/system/ipfs.service
|
10403
|
10403
|
echo 'Environment="USER=git" "HOME=/home/git" "GOPATH=/home/git/go"' >> /etc/systemd/system/ipfs.service
|
10404
|
10404
|
echo '' >> /etc/systemd/system/ipfs.service
|