Rename ipfs avahi service

This commit is contained in:
Bob Mottram 2016-09-07 22:47:01 +01:00
parent 614906ad05
commit e8cf91de27
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
3 changed files with 3 additions and 3 deletions

View File

@ -573,7 +573,7 @@ function install_ipfs_go {
fi
# Add an avahi service
function_check create_avahi_service
create_avahi_service ipfs "ipfs" udp $IPFS_PORT "$IPFS_PEER_ID"
create_avahi_service ipfs_id "ipfs_id" 'udp' $IPFS_PORT "$IPFS_PEER_ID:none"
rm /tmp/ipfsid
fi

View File

@ -815,7 +815,7 @@ function setup_ipfs {
TOX_ID=$(su -c 'toxid' - $MY_USERNAME)
fi
create_avahi_mesh_service "ipfs" "ipfs" "udp" "$IPFS_PORT" "${IPFS_PEER_ID}:${TOX_ID}"
create_avahi_mesh_service "ipfs_id" "ipfs_id" "udp" "$IPFS_PORT" "${IPFS_PEER_ID}:${TOX_ID}"
echo "IPFS installed with ID ${IPFS_PEER_ID}" >> $INSTALL_LOG
}

View File

@ -116,7 +116,7 @@ function ipfs_publish {
}
function ipfs_bootstrap {
cat $TEMPFILE_BASE | grep "IPFS\|hostname =\|address =\|port =\|txt =" > $TEMPFILE
cat $TEMPFILE_BASE | grep "ipfs_id\|hostname =\|address =\|port =\|txt =" > $TEMPFILE
state=0
address=""