echo -e "/key/swarm/psk/1.0.0/\n/base16/\n`tr -dc 'a-f0-9' < /dev/urandom | head -c64`" > ~/.ipfs/swarm.key

This commit is contained in:
qo-op 2021-01-22 15:22:09 +01:00
parent d01d4a705f
commit fbe055a3f7
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ export GPGPASS=$(cat "/home/$YOU/.ipfs/config" | jq '.Identity.PrivKey' | sed s/
if [ ! $GPGPASS ]; then echo "FATAL ERROR:: IPFS Node.Identity.PrivKey GPGPASS EMPTY"; exit; fi if [ ! $GPGPASS ]; then echo "FATAL ERROR:: IPFS Node.Identity.PrivKey GPGPASS EMPTY"; exit; fi
# GET SWARM KEY G1sms+ .ipfs/swarm.key # GET SWARM KEY G1sms+ .ipfs/swarm.key
#export SWARMKEY=$(cat "/home/$YOU/.ipfs/swarm.key" | tail -n 1) export SWARMKEY=$(cat "/home/$YOU/.ipfs/swarm.key" | tail -n 1)
#if [ ! $SWARMKEY ]; then echo "FATAL ERROR:: .ipfs/swarm.key EMPTY"; exit; fi if [ ! $SWARMKEY ]; then echo "FATAL ERROR:: .ipfs/swarm.key EMPTY"; exit; fi
################################################################## ##################################################################
# G1sms+ Swarm KEYS # G1sms+ Swarm KEYS