Browse Source

Add in tor password writing

patch-1
nolim1t 5 years ago
parent
commit
d1831367e9
No known key found for this signature in database GPG Key ID: F6287B82CC84BCBD
  1. 8
      configure-box.sh

8
configure-box.sh

@ -35,5 +35,13 @@ if [ ! -z $TESTNET ]; then
# Update docker-compose # Update docker-compose
sed -i 's/mainnet/testnet/g; ' docker-compose.yml sed -i 's/mainnet/testnet/g; ' docker-compose.yml
fi fi
echo "Adding tor password"
SAVE_PASSWORD=`tor --hash-password "${RPCPASS}"`
echo "HashedControlPassword ${SAVE_PASSWORD}" >> tor/torrc
echo "Configuring bitcoind"
sed -i "s/#torpassword=umbrelftw/#torpassword=${RPCPASS}/g;" bitcoin/bitcoin.conf
echo "Configuring LND"
sed -i "s/; tor.password=umbrelftw/; tor.password=${RPCPASS}/g; " lnd/lnd.conf
rm configure-box.sh rm configure-box.sh
echo "Box Configuration complete" echo "Box Configuration complete"

Loading…
Cancel
Save