This commit is contained in:
Bob Mottram 2015-09-29 19:15:45 +01:00
parent 1d55988b4a
commit 12e4ad17a9
1 changed files with 4 additions and 4 deletions

View File

@ -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