From 6db6218e5a86e1b28948610b35e4357e89877b1d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 12 Aug 2016 10:17:33 +0100 Subject: [PATCH] ipfs command --- src/zeronetavahi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zeronetavahi b/src/zeronetavahi index 0f913de1..a927d623 100755 --- a/src/zeronetavahi +++ b/src/zeronetavahi @@ -52,6 +52,7 @@ ZERONET_INDEX=$ZERONET_INSTALL/mesh.html ZERONET_CONFIG=$ZERONET_INSTALL/bootstrap IPFS_PORT=4001 +IPFS_COMMAND=/usr/local/bin/jsipfs MY_BLOG_STR=$"My Blog" MY_MAIL_STR=$"My Mail" @@ -91,7 +92,7 @@ function ipfs_bootstrap { if [ ${state} -eq "3" ]; then if [[ $line == *"txt ="* ]]; then ipfs_peer_id=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}' | awk -F '"' '{print $2}') - ipfs bootstrap add /ip4/${address}/tcp/${IPFS_PORT}/ipfs/${ipfs_peer_id} + $IPFS_COMMAND bootstrap add /ip4/${address}/tcp/${IPFS_PORT}/ipfs/${ipfs_peer_id} state=0 fi fi