Please rm -f ~/.zen/secret* before running $ME

This commit is contained in:
qo-op 2020-11-17 11:49:20 +01:00
parent 1e70f7296f
commit 3179a6be2d
1 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,8 @@ MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
ME="${0##*/}"
[[ -f ~/.zen/secret ]] && echo "Please rm -f ~/.zen/secret* before running $ME" && exit 1
echo '>>>>>>> METAVERSE KEY CREATION <<<<<<<<
__ __ ____
@ -101,8 +103,9 @@ echo "Configure IPFS: copy the lines above in your console"
echo "then run jq commands and make your IPFS NODE https://Cesium.app compatible"
echo " -> Read your Cesium messages to find how to Bootstrap your node"
echo
echo "jq -r --arg PeerID \"\$PeerID\" '.Identity.PeerID=\$PeerID' ~/.ipfs/config"
echo "jq -r --arg PrivKey \"\$PrivKey\" '.Identity.PrivKey=\$PrivKey' ~/.ipfs/config"
echo "cp -f ~/.ipfs/config ~/.ipfs/config.old"
echo "jq -r --arg PeerID \"\$PeerID\" '.Identity.PeerID=\$PeerID' ~/.ipfs/config > /tmp/config.tmp"
echo "jq -r --arg PrivKey \"\$PrivKey\" '.Identity.PrivKey=\$PrivKey' /tmp/config.tmp > ~/.ipfs/config"
echo ""
rm -f /tmp/secret.dunikey
}