forked from axiom-team/astrXbian
()
This commit is contained in:
parent
dbf02f0138
commit
7cd0312096
@ -45,7 +45,7 @@ do
|
|||||||
$MY_PATH/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/ipfs_swarm/.${ipfsnodesource}/KEY/${mediakey}/${g1source}/${G1PUB}/.ipns.mediakey.encrypt" -o "/tmp/ipns.mediakey"
|
$MY_PATH/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/ipfs_swarm/.${ipfsnodesource}/KEY/${mediakey}/${g1source}/${G1PUB}/.ipns.mediakey.encrypt" -o "/tmp/ipns.mediakey"
|
||||||
if [[ -f /tmp/ipns.mediakey ]]; then
|
if [[ -f /tmp/ipns.mediakey ]]; then
|
||||||
KEYFILE=$($MY_PATH/give_me_keystore_filename.py "${mediakey}")
|
KEYFILE=$($MY_PATH/give_me_keystore_filename.py "${mediakey}")
|
||||||
[[ ! -f ~/.ipfs/keystore/$KEYFILE ]] && mv /tmp/ipns.mediakey ~/.ipfs/keystore/$KEYFILE || echo "KEYSTORE EXISTING. EXIT" && continue
|
[[ ! -f ~/.ipfs/keystore/$KEYFILE ]] && mv /tmp/ipns.mediakey ~/.ipfs/keystore/$KEYFILE || ( echo "KEYSTORE EXISTING. EXIT" && continue )
|
||||||
echo "${mediakey}" > ~/.zen/PIN/${astrofile}/MEDIAKEY
|
echo "${mediakey}" > ~/.zen/PIN/${astrofile}/MEDIAKEY
|
||||||
echo "$(ipfs key list -l | grep ${mediakey} | cut -d ' ' -f 1)" > ~/.zen/PIN/${astrofile}/IPNSLINK
|
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
|
## USED BY BOOTSTRAP IN ipns_TAG_refresh.sh TO REFRESH MEDIAKEY publishing
|
||||||
|
Loading…
Reference in New Issue
Block a user