forked from axiom-team/astrXbian
REFRESH stargates keys from my friend
This commit is contained in:
parent
b6452beb38
commit
f3c31fccb1
@ -97,14 +97,14 @@ do
|
|||||||
################################################################
|
################################################################
|
||||||
## REFRESH stargates keys from my friend
|
## REFRESH stargates keys from my friend
|
||||||
################################################################
|
################################################################
|
||||||
mkdir -p ~/.zen/key/stargates/$fg1pub
|
mkdir -p ~/.zen/key/stargates/$whoisg1
|
||||||
ipfs get --pin=false --output=~/.zen/key/stargates/$fg1pub/ /ipns/$ipfsnodeid/.$ipfsnodeid/FRIENDS/$G1PUB/
|
ipfs get --output=~/.zen/key/stargates/$whoisg1/ /ipns/$ipfsnodeid/.$ipfsnodeid/FRIENDS/$G1PUB/
|
||||||
## DECRYPT
|
## 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/$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/$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/$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/$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/$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/$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/$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/$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/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
|
fi
|
||||||
else
|
else
|
||||||
[[ -f ~/.zen/DEFCON ]] && export DEFCON=$(cat ~/.zen/DEFCON) || export DEFCON=$(cat ~/.zen/astrXbian/DEFCON) # like in crom_MINUTE.sh
|
[[ -f ~/.zen/DEFCON ]] && export DEFCON=$(cat ~/.zen/DEFCON) || export DEFCON=$(cat ~/.zen/astrXbian/DEFCON) # like in crom_MINUTE.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user