ipfs command
This commit is contained in:
parent
c5f7f36078
commit
6db6218e5a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue