mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-19 04:54:18 +01:00
electrs: use cat to redirect string to file
This commit is contained in:
@@ -47,15 +47,13 @@ touch /home/admin/.electrs/config.toml
|
||||
chmod 600 /home/admin/.electrs/config.toml
|
||||
|
||||
echo "generating electrs.toml setting file with the RPC passwords"
|
||||
(
|
||||
echo "
|
||||
cat > /home/admin/.electrs/config.toml <<EOF
|
||||
verbose = 4
|
||||
timestamp = true
|
||||
jsonrpc_import = true
|
||||
db_dir = \"/mnt/hdd/electrs/db\"
|
||||
cookie = \"$RPC_USER:$PASSWORD_B\"
|
||||
" | tee -a /home/admin/.electrs/config.toml
|
||||
) &> /dev/null
|
||||
EOF
|
||||
|
||||
# Run electrs
|
||||
cargo run --release -- --index-batch-size=10 --electrum-rpc-addr="0.0.0.0:50001"
|
||||
|
||||
Reference in New Issue
Block a user