From fa39958b072fc09451db4f3c8fa66496723ccb7c Mon Sep 17 00:00:00 2001 From: openoms Date: Thu, 22 Aug 2019 06:27:00 +0100 Subject: [PATCH] ask for PASSWORD_B upfront --- electrs/1_electrs_on_RaspiBlitz.sh | 7 ++++--- electrs/t1_electrs_on_RaspiBlitz.sh | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/electrs/1_electrs_on_RaspiBlitz.sh b/electrs/1_electrs_on_RaspiBlitz.sh index 38e0872..904ecba 100644 --- a/electrs/1_electrs_on_RaspiBlitz.sh +++ b/electrs/1_electrs_on_RaspiBlitz.sh @@ -2,6 +2,10 @@ # $ wget https://github.com/openoms/bitcoin-tutorials/raw/master/electrs/electrs_install_on_RaspiBlitz.sh && bash electrs_install_on_RaspiBlitz.sh # https://github.com/romanz/electrs/blob/master/doc/usage.md + +echo "Type the PASSWORD B of your RaspiBlitz followed by [ENTER] (needed for Electrs to access the bitcoind RPC):" +read PASSWORD_B + echo "" echo "***" echo "Installing Rust - press 1 and [ENTER] when prompted" @@ -32,9 +36,6 @@ sudo mkdir /mnt/hdd/electrs sudo chown -R admin:admin /mnt/hdd/electrs sudo ufw allow 50001 -echo "Type the PASSWORD B of your RaspiBlitz followed by [ENTER]:" -read PASSWORD_B - # Run with password B filled in: cargo run --release -- -vvvv --index-batch-size=10 --jsonrpc-import --db-dir /mnt/hdd/electrs/db --cookie="raspibolt:$PASSWORD_B" --electrum-rpc-addr="0.0.0.0:50001" diff --git a/electrs/t1_electrs_on_RaspiBlitz.sh b/electrs/t1_electrs_on_RaspiBlitz.sh index 991930a..0bb5d99 100644 --- a/electrs/t1_electrs_on_RaspiBlitz.sh +++ b/electrs/t1_electrs_on_RaspiBlitz.sh @@ -2,6 +2,10 @@ # $ wget https://github.com/openoms/bitcoin-tutorials/raw/master/electrs/electrs_install_on_RaspiBlitz.sh && bash electrs_install_on_RaspiBlitz.sh # https://github.com/romanz/electrs/blob/master/doc/usage.md + +echo "Type the PASSWORD B of your RaspiBlitz followed by [ENTER] (needed for Electrs to access the bitcoind RPC):" +read PASSWORD_B + echo "" echo "***" echo "Installing Rust - press 1 and [ENTER] when prompted" @@ -32,9 +36,6 @@ sudo mkdir /mnt/hdd/electrs sudo chown -R admin:admin /mnt/hdd/electrs sudo ufw allow 60001 -echo "Type the PASSWORD B of your RaspiBlitz followed by [ENTER]:" -read PASSWORD_B - # Run with password B filled in: cargo run --release -- -vvvv --index-batch-size=10 --jsonrpc-import --db-dir /mnt/hdd/electrs/testnetdb --cookie="raspibolt:$PASSWORD_B" --electrum-rpc-addr="0.0.0.0:60001" --network testnet --timestamp