Browse Source

Add porcelain around generating a new config for a Hush node

genhushconfig
Jonathan "Duke" Leto 7 years ago
parent
commit
132c1b8058
  1. BIN
      bin/.genhushconfig.swo
  2. 13
      bin/genhushconfig
  3. 2
      bin/jonathanleto/.hush/hush.conf

BIN
bin/.genhushconfig.swo

Binary file not shown.

13
bin/genhushconfig

@ -0,0 +1,13 @@
#!/bin/bash
# Generate a new Hush node config
DIR="~/.hush"
if [ -d "$DIR" ]; then
echo "Hush config directory $DIR already exists, doing nothing!!!"
else
mkdir -p $DIR
echo "rpcuser=username" >> $DIR/hush.conf
echo "rpcpassword=`head -c 32 /dev/urandom | base64`" >>$DIR/hush.conf
echo "Created $DIR/hush.conf"
fi

2
bin/jonathanleto/.hush/hush.conf

@ -0,0 +1,2 @@
rpcuser=username
rpcpassword=meDOaPW5wqlgJHlPOdJ5FZM390p1EyZaEDrKuSDpRFQ=
Loading…
Cancel
Save