ask for PASSWORD_B upfront

This commit is contained in:
openoms
2019-08-22 06:27:00 +01:00
parent de12c21b20
commit fa39958b07
2 changed files with 8 additions and 6 deletions

View File

@@ -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 # $ 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 # 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 "***" echo "***"
echo "Installing Rust - press 1 and [ENTER] when prompted" 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 chown -R admin:admin /mnt/hdd/electrs
sudo ufw allow 50001 sudo ufw allow 50001
echo "Type the PASSWORD B of your RaspiBlitz followed by [ENTER]:"
read PASSWORD_B
# Run with password B filled in: # 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" 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"

View File

@@ -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 # $ 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 # 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 "***" echo "***"
echo "Installing Rust - press 1 and [ENTER] when prompted" 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 chown -R admin:admin /mnt/hdd/electrs
sudo ufw allow 60001 sudo ufw allow 60001
echo "Type the PASSWORD B of your RaspiBlitz followed by [ENTER]:"
read PASSWORD_B
# Run with password B filled in: # 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 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