Original HUSH source code based on ZEC 1.0.8 . For historical purposes only! https://hush.is
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
392 B

#!/bin/bash
# Generate a new Hush node config
DIR="$HOME/.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
cat zcutil/hush.conf.default >> $DIR/hush.conf
echo "Created $DIR/hush.conf"
fi