diff --git a/zen/ipns_TAG_refresh.sh b/zen/ipns_TAG_refresh.sh index f01b56c..1e72e44 100755 --- a/zen/ipns_TAG_refresh.sh +++ b/zen/ipns_TAG_refresh.sh @@ -216,10 +216,10 @@ done ## Then refresh MEDIAKEY IPNS/IPFS RELATION ## CORRECT ISSUE : https://git.p2p.legal/axiom-team/astrXbian/issues/25 ######################################################################## -for ipnslink in $(ls ~/.zen/PIN/*/IPNSLINK); +for ipnslink in $(ls ~/.zen/PIN/*/IPNSLINK); do ipnsid=$(cat $ipnslink) ipfsid=$(echo $ipnslink | cut -d '/' -f 6) - mediakey=$(cat~/.zen/PIN/${ipfsid}/MEDIAKEY) + mediakey=$(cat ~/.zen/PIN/${ipfsid}/MEDIAKEY) [[ ! $(ipfs key list | grep ${mediakey}) ]] && echo "ERROR MISSING MEDIAKEY" && continue diff --git a/zen/tools/autoPINfriends.sh b/zen/tools/autoPINfriends.sh index 4b8af4b..4292025 100755 --- a/zen/tools/autoPINfriends.sh +++ b/zen/tools/autoPINfriends.sh @@ -48,6 +48,7 @@ do [[ ! -f ~/.ipfs/keystore/$KEYFILE ]] && mv /tmp/ipns.mediakey ~/.ipfs/keystore/$KEYFILE || echo "KEYSTORE EXISTING. EXIT" && continue echo "${mediakey}" > ~/.zen/PIN/${astrofile}/MEDIAKEY echo "$(ipfs key list -l | grep ${mediakey} | cut -d ' ' -f 1)" > ~/.zen/PIN/${astrofile}/IPNSLINK + ## USED BY BOOTSTRAP IN ipns_TAG_refresh.sh TO REFRESH MEDIAKEY publishing fi fi else