Skip to content
Snippets Groups Projects
Commit 6db6218e authored by Bob Mottram's avatar Bob Mottram
Browse files

ipfs command

parent c5f7f360
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment