ipfs command

This commit is contained in:
Bob Mottram 2016-08-12 10:17:33 +01:00
parent c5f7f36078
commit 6db6218e5a
1 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ ZERONET_INDEX=$ZERONET_INSTALL/mesh.html
ZERONET_CONFIG=$ZERONET_INSTALL/bootstrap ZERONET_CONFIG=$ZERONET_INSTALL/bootstrap
IPFS_PORT=4001 IPFS_PORT=4001
IPFS_COMMAND=/usr/local/bin/jsipfs
MY_BLOG_STR=$"My Blog" MY_BLOG_STR=$"My Blog"
MY_MAIL_STR=$"My Mail" MY_MAIL_STR=$"My Mail"
@ -91,7 +92,7 @@ function ipfs_bootstrap {
if [ ${state} -eq "3" ]; then if [ ${state} -eq "3" ]; then
if [[ $line == *"txt ="* ]]; then if [[ $line == *"txt ="* ]]; then
ipfs_peer_id=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}' | awk -F '"' '{print $2}') 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 state=0
fi fi
fi fi