PeerID
This commit is contained in:
parent
7f5fe12277
commit
bdcca1e213
12
ISOconfig.sh
12
ISOconfig.sh
|
@ -78,27 +78,23 @@ sudo service ipfs restart
|
|||
|
||||
sleep 10
|
||||
|
||||
if [[ $G1PUB == "" ]]; then
|
||||
echo 'EXTEND ~/.bashrc'
|
||||
echo "### ASTROPORT IDENTITY ###" >> ~/.bashrc
|
||||
echo "export YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)" >> ~/.bashrc
|
||||
echo "export IPFSNODEID=$PeerID" >> ~/.bashrc
|
||||
echo "export G1PUB=$g1pub" >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
echo "I am $YOU runnning $IPFSNODEID ipfs peer"
|
||||
echo "G1 wallet : $G1PUB"
|
||||
fi
|
||||
|
||||
mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/G1SSB
|
||||
echo "" > ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
|
||||
mkdir -p ~/.zen/ipfs/.${PeerID}/G1SSB
|
||||
echo "" > ~/.zen/ipfs/.${PeerID}/tryme.addr
|
||||
for tryme in $(ipfs id | jq -r .Addresses[]);
|
||||
do
|
||||
isLAN=$(echo $tryme | cut -f3 -d '/' | grep -E "(^127\.)|(^192\.168\.)|(^fd42\:)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/")
|
||||
[[ ! $isLAN ]] && echo "$tryme" >> ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
|
||||
[[ ! $isLAN ]] && echo "$tryme" >> ~/.zen/ipfs/.${PeerID}/tryme.addr && echo "$tryme"
|
||||
done
|
||||
|
||||
echo 'SEND ipfstryme to oasis'
|
||||
./jaklis.py send -d 2jQUH4HfHxdTesjCjvMCx1VJgA5AnpuvrWRq1swfRdsS -t "ipfstryme" -f ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
|
||||
./jaklis.py send -d 2jQUH4HfHxdTesjCjvMCx1VJgA5AnpuvrWRq1swfRdsS -t "ipfstryme" -f ~/.zen/ipfs/.${PeerID}/tryme.addr
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue