forked from axiom-team/astrXbian
stars
This commit is contained in:
parent
491ba1c0b3
commit
6ac67826ab
|
@ -32,6 +32,13 @@ do
|
|||
g1source=$(echo "$astrofile" | cut -d '/' -f 9 )
|
||||
ipfsnodesource=$(~/.zen/astrXbian/zen/tools/g1_to_ipfs.py $g1source)
|
||||
|
||||
# CHECK FRIENDSHIP LEVELS
|
||||
starsin=$(ipfs --timeout=10s cat /ipns/$ipfsnodesource/.$ipfsnodesource/FRIENDS/$G1PUB/stars.level)
|
||||
starsout=$(ipfs --timeout=10s cat /ipns/$IPFSNODEID/.$IPFSNODEID/FRIENDS/$g1source/stars.level)
|
||||
|
||||
## PIN COULD BE ONLY ALLOWED FROM SOME LEVEL FRIENDS ONLY
|
||||
echo "RX $starsin / TX $starsout (stars)"
|
||||
|
||||
echo "$mediakey PINNING ASKED BY $g1source"
|
||||
## DECRYPT FINAL IPFS LINKS...
|
||||
$MY_PATH/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$astrofile" -o "/tmp/ipfslink.txt"
|
||||
|
|
Loading…
Reference in New Issue