Browse Source

go ipfs directory

Bob Mottram 9 years ago
parent
commit
3d61f13342
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/freedombone

+ 3
- 3
src/freedombone View File

469
 ZERONET_DEFAULT_MAIL_TAGLINE="Mail for the Mesh"
469
 ZERONET_DEFAULT_MAIL_TAGLINE="Mail for the Mesh"
470
 
470
 
471
 # https://github.com/ipfs/go-ipfs
471
 # https://github.com/ipfs/go-ipfs
472
-IPFS_GO_REPO="github.com/ipfs/go-ipfs/cmd/ipfs"
472
+IPFS_GO_REPO="github.com/ipfs/go-ipfs"
473
 IPFS_COMMIT='20b06a4cbce8884f5b194da6e98cb11f2c77f166'
473
 IPFS_COMMIT='20b06a4cbce8884f5b194da6e98cb11f2c77f166'
474
 IPFS_PORT=4001
474
 IPFS_PORT=4001
475
 
475
 
9565
             CURRENT_IPFS_COMMIT=$(grep "ipfs commit" $COMPLETION_FILE | awk -F ':' '{print $2}')
9565
             CURRENT_IPFS_COMMIT=$(grep "ipfs commit" $COMPLETION_FILE | awk -F ':' '{print $2}')
9566
             if [[ "$CURRENT_IPFS_COMMIT" != "$IPFS_COMMIT" ]]; then
9566
             if [[ "$CURRENT_IPFS_COMMIT" != "$IPFS_COMMIT" ]]; then
9567
                 cd /home/git/go/src/github.com/ipfs/go-ipfs
9567
                 cd /home/git/go/src/github.com/ipfs/go-ipfs
9568
-                git_pull $IPFS_REPO $IPFS_COMMIT
9568
+                git_pull $IPFS_GO_REPO $IPFS_COMMIT
9569
                 sed -i "s/ipfs commit.*/ipfs commit:$IPFS_COMMIT/g" $COMPLETION_FILE
9569
                 sed -i "s/ipfs commit.*/ipfs commit:$IPFS_COMMIT/g" $COMPLETION_FILE
9570
                 chown -R git:git /home/git
9570
                 chown -R git:git /home/git
9571
                 systemctl restart ipfs
9571
                 systemctl restart ipfs
9610
         chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc
9610
         chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc
9611
     fi
9611
     fi
9612
 
9612
 
9613
-    go get -u $IPFS_GO_REPO
9613
+    go get -u $IPFS_GO_REPO/cmd/ipfs
9614
     if [ ! "$?" = "0" ]; then
9614
     if [ ! "$?" = "0" ]; then
9615
         exit 8242
9615
         exit 8242
9616
     fi
9616
     fi