Browse Source
Pull images and use Tor container to hash password
patch-1
Mayank
5 years ago
No known key found for this signature in database
GPG Key ID: D037D60476CE748C
1 changed files with
8 additions and
3 deletions
-
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 |
|
|
|