IPNSKEY=$(ipfs key gen xbian)

This commit is contained in:
qo-op 2020-12-17 14:13:34 +01:00
parent 4e927b4033
commit 8901525739
1 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,12 @@ if [[ $YOU != "" && $IPFSNODEID != "" && $G1PUB != "" ]]; then
sed -i "s/YOU=$YOU/YOU=$newYOU/g" ~/.bashrc
sed -i "s/$G1PUB/$newG1PUB/g" ~/.bashrc
sed -i "s/$IPFSNODEID/$newIPFSNODEID/g" ~/.bashrc
if [[ $IPNSKEY == "_IPNSKEY_" ]]; then
ipfs key rm xbian
IPNSKEY=$(ipfs key gen xbian)
sed -i "s/_IPNSKEY_/$IPNSKEY/g" ~/.bashrc.sh
fi
else
# CREATE
echo "### ASTROPORT IDENTITY ###" >> ~/.bashrc