Browse Source

Pull images and use Tor container to hash password

patch-1
Mayank 5 years ago
parent
commit
14148c7e28
No known key found for this signature in database GPG Key ID: D037D60476CE748C
  1. 11
      configure-box.sh

11
configure-box.sh

@ -70,12 +70,17 @@ if [ -z $TESTNET ] && [ -z $REGTEST ]; then
echo "Setting mainnet RPC port in docker-compose"
sed -i 's/RPCPORT/18443/g; ' docker-compose.yml
fi
echo "Pulling Docker images"
docker-compose pull
echo "Adding tor password"
SAVE_PASSWORD=`tor --hash-password "${RPCPASS}"`
SAVE_PASSWORD=`docker run -it getumbrel/tor --quiet --hash-password "${RPCPASS}"`
echo "HashedControlPassword ${SAVE_PASSWORD}" >> tor/torrc
echo "Configuring bitcoind"
echo "Adding Tor password to bitcoind"
sed -i "s/torpassword=umbrelftw/torpassword=${RPCPASS}/g;" bitcoin/bitcoin.conf
echo "Configuring LND"
echo "Adding Tor password to LND"
sed -i "s/tor.password=umbrelftw/tor.password=${RPCPASS}/g; " lnd/lnd.conf
rm configure-box.sh

Loading…
Cancel
Save