go ipfs directory

This commit is contained in:
Bob Mottram 2016-01-27 14:37:05 +00:00
parent ef3f16d065
commit 3d61f13342
1 changed files with 3 additions and 3 deletions

View File

@ -469,7 +469,7 @@ ZERONET_DEFAULT_FORUM_TAGLINE="A decentralized discussion group"
ZERONET_DEFAULT_MAIL_TAGLINE="Mail for the Mesh"
# https://github.com/ipfs/go-ipfs
IPFS_GO_REPO="github.com/ipfs/go-ipfs/cmd/ipfs"
IPFS_GO_REPO="github.com/ipfs/go-ipfs"
IPFS_COMMIT='20b06a4cbce8884f5b194da6e98cb11f2c77f166'
IPFS_PORT=4001
@ -9565,7 +9565,7 @@ function install_ipfs {
CURRENT_IPFS_COMMIT=$(grep "ipfs commit" $COMPLETION_FILE | awk -F ':' '{print $2}')
if [[ "$CURRENT_IPFS_COMMIT" != "$IPFS_COMMIT" ]]; then
cd /home/git/go/src/github.com/ipfs/go-ipfs
git_pull $IPFS_REPO $IPFS_COMMIT
git_pull $IPFS_GO_REPO $IPFS_COMMIT
sed -i "s/ipfs commit.*/ipfs commit:$IPFS_COMMIT/g" $COMPLETION_FILE
chown -R git:git /home/git
systemctl restart ipfs
@ -9610,7 +9610,7 @@ function install_ipfs {
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc
fi
go get -u $IPFS_GO_REPO
go get -u $IPFS_GO_REPO/cmd/ipfs
if [ ! "$?" = "0" ]; then
exit 8242
fi