This commit is contained in:
qo-op 2021-05-18 01:24:07 +02:00
parent a0de7fb29e
commit da6e3bc95f
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@ G1PUB=$(cat ~/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
# SOURCE: ~/.zen/ipfs/.${IPFSNODEID}/KEY/${INDEXPREFIX}${REFERENCE}/${G1PUB}/${g1node}/.ipfsid.encrypt (new_file_in_astroport.sh)
## AUTO PIN FRIENDS ACTIVATION
for astrofile in $(ls -dt ~/.zen/ipfs_swarm/.12D*/KEY/*/*/${G1PUB}/.ipfsid.encrypt);
for astrofile in $(ls -dt ~/.zen/ipfs_swarm/.12D*/KEY/*/*/${G1PUB}/.ipfsid.encrypt | shuf);
do
# decrypt $astrofile
mediakey=$(echo "$astrofile" | cut -d '/' -f 8 )
@ -38,6 +38,7 @@ do
[[ -d ~/.zen/PIN/${astrofile} ]] && echo "0" > ~/.zen/PIN/${astrofile}/$G1PUB
else
echo "ALREADY PINNED"
continue
fi
## TOOD : DECIDE TO ACTIVATE THIS BEHAVIOUR OR NOT ?