Bootstrap command
This commit is contained in:
parent
c50d96e523
commit
28531562ae
|
@ -243,8 +243,8 @@ while IFS='' read -r line || [[ -n "$line" ]]; do
|
|||
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 add /ip4/${address}/tcp/${IPFS_PORT}/ipfs/${ipfs_peer_id}
|
||||
echo " <li><a href=http://localhost:5001/ipfs/${ipfs_peer_id}>${peer}</a></li>" >> $IPFS_FILE.new
|
||||
ipfs bootstrap add /ip4/${address}/tcp/${IPFS_PORT}/ipfs/${ipfs_peer_id}
|
||||
echo " <li><a href=\"http://localhost:5001/ipfs/${ipfs_peer_id}\">${peer}</a></li>" >> $IPFS_FILE.new
|
||||
state=0
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue