Please rm -f ~/.zen/secret* before running $ME
This commit is contained in:
parent
1e70f7296f
commit
3179a6be2d
|
@ -5,6 +5,8 @@ MY_PATH="`dirname \"$0\"`" # relative
|
||||||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||||||
ME="${0##*/}"
|
ME="${0##*/}"
|
||||||
|
|
||||||
|
[[ -f ~/.zen/secret ]] && echo "Please rm -f ~/.zen/secret* before running $ME" && exit 1
|
||||||
|
|
||||||
echo '>>>>>>> METAVERSE KEY CREATION <<<<<<<<
|
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 "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 " -> Read your Cesium messages to find how to Bootstrap your node"
|
||||||
echo
|
echo
|
||||||
echo "jq -r --arg PeerID \"\$PeerID\" '.Identity.PeerID=\$PeerID' ~/.ipfs/config"
|
echo "cp -f ~/.ipfs/config ~/.ipfs/config.old"
|
||||||
echo "jq -r --arg PrivKey \"\$PrivKey\" '.Identity.PrivKey=\$PrivKey' ~/.ipfs/config"
|
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 ""
|
echo ""
|
||||||
rm -f /tmp/secret.dunikey
|
rm -f /tmp/secret.dunikey
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue