update_bashrc.sh

This commit is contained in:
qo-op 2020-12-06 02:04:54 +01:00
parent 884d04eb27
commit b7854c23b5
2 changed files with 2 additions and 5 deletions

View File

@ -4,6 +4,7 @@
# Version: 2020.12.06
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
########################################################################
# update_bashrc.sh
# Add $YOU $IPFSNODEID $G1PUB to ~/.bashrc
source ~/.bashrc

View File

@ -78,11 +78,7 @@ sudo service ipfs restart
sleep 10
echo 'EXTEND ~/.bashrc'
echo "### ASTROPORT IDENTITY ###" >> ~/.bashrc
echo "export YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)" >> ~/.bashrc
echo "export IPFSNODEID=$PeerID" >> ~/.bashrc
echo "export G1PUB=$g1pub" >> ~/.bashrc
source ~/.bashrc
~/.zen/astroport/.install/update_bashrc.sh
mkdir -p ~/.zen/ipfs/.${PeerID}/G1SSB
echo "" > ~/.zen/ipfs/.${PeerID}/tryme.addr