Browse Source

REFRESH stargates keys from my friend

master
qo-op 1 month ago
parent
commit
f3c31fccb1
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      zen/ipfs_SWARM_refresh.sh

+ 7
- 7
zen/ipfs_SWARM_refresh.sh View File

@ -97,14 +97,14 @@ do
################################################################
## REFRESH stargates keys from my friend
################################################################
mkdir -p ~/.zen/key/stargates/$fg1pub
ipfs get --pin=false --output=~/.zen/key/stargates/$fg1pub/ /ipns/$ipfsnodeid/.$ipfsnodeid/FRIENDS/$G1PUB/
mkdir -p ~/.zen/key/stargates/$whoisg1
ipfs get --output=~/.zen/key/stargates/$whoisg1/ /ipns/$ipfsnodeid/.$ipfsnodeid/FRIENDS/$G1PUB/
## DECRYPT
[[ -f $HOME/.zen/key/stargates/$fg1pub/stargate1.encrypt ]] && $MY_PATH/tools/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/key/stargates/$fg1pub/stargate1.encrypt" -o "$HOME/.zen/key/stargates/$fg1pub/stargate1"
[[ -f $HOME/.zen/key/stargates/$fg1pub/stargate2.encrypt ]] && $MY_PATH/tools/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/key/stargates/$fg1pub/stargate2.encrypt" -o "$HOME/.zen/key/stargates/$fg1pub/stargate2"
[[ -f $HOME/.zen/key/stargates/$fg1pub/stargate3.encrypt ]] && $MY_PATH/tools/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/key/stargates/$fg1pub/stargate3.encrypt" -o "$HOME/.zen/key/stargates/$fg1pub/stargate3"
[[ -f $HOME/.zen/key/stargates/$fg1pub/stargate4.encrypt ]] && $MY_PATH/tools/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/key/stargates/$fg1pub/stargate4.encrypt" -o "$HOME/.zen/key/stargates/$fg1pub/stargate4"
[[ -f $HOME/.zen/key/stargates/$fg1pub/stargate5.encrypt ]] && $MY_PATH/tools/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/key/stargates/$fg1pub/stargate5.encrypt" -o "$HOME/.zen/key/stargates/$fg1pub/stargate5"
[[ -f $HOME/.zen/key/stargates/$whoisg1/stargate1.encrypt ]] && $MY_PATH/tools/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/key/stargates/$whoisg1/stargate1.encrypt" -o "$HOME/.zen/key/stargates/$whoisg1/stargate1"
[[ -f $HOME/.zen/key/stargates/$whoisg1/stargate2.encrypt ]] && $MY_PATH/tools/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/key/stargates/$whoisg1/stargate2.encrypt" -o "$HOME/.zen/key/stargates/$whoisg1/stargate2"
[[ -f $HOME/.zen/key/stargates/$whoisg1/stargate3.encrypt ]] && $MY_PATH/tools/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/key/stargates/$whoisg1/stargate3.encrypt" -o "$HOME/.zen/key/stargates/$whoisg1/stargate3"
[[ -f $HOME/.zen/key/stargates/$whoisg1/stargate4.encrypt ]] && $MY_PATH/tools/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/key/stargates/$whoisg1/stargate4.encrypt" -o "$HOME/.zen/key/stargates/$whoisg1/stargate4"
[[ -f $HOME/.zen/key/stargates/$whoisg1/stargate5.encrypt ]] && $MY_PATH/tools/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/key/stargates/$whoisg1/stargate5.encrypt" -o "$HOME/.zen/key/stargates/$whoisg1/stargate5"
fi
else
[[ -f ~/.zen/DEFCON ]] && export DEFCON=$(cat ~/.zen/DEFCON) || export DEFCON=$(cat ~/.zen/astrXbian/DEFCON) # like in crom_MINUTE.sh


Loading…
Cancel
Save