From 8ad3ae0e9b32bd1fa094903900ca2ec357c274b6 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Fri, 18 Aug 2023 22:02:47 +0300 Subject: [PATCH] Allow setting DB name via `server.sh` --- server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.sh b/server.sh index e1d2f90..c66a4c9 100755 --- a/server.sh +++ b/server.sh @@ -8,7 +8,7 @@ cargo build --all --features "metrics_process" --release NETWORK=$1 shift -DB=./db +DB=${DB-./db} export RUST_LOG=${RUST_LOG-electrs=INFO} target/release/electrs --network $NETWORK --db-dir $DB --daemon-dir $HOME/.bitcoin $*