Source .env in seed.sh so it prints the real password

Docker Compose reads .env automatically; bash does not. seed.sh referenced
${RTL_PASSWORD:-password} without sourcing it, so the default always won and
the summary told the user to log in with 'password' -- the blacklisted value
this branch just removed.
This commit is contained in:
saubyk 2026-07-16 00:07:18 -07:00 committed by Suheb
parent df48de1140
commit 1a6cb0b0a8

View file

@ -19,6 +19,16 @@ set -euo pipefail
cd "$(dirname "$0")/.."
# Docker Compose reads .env by itself; bash does not. Without this the defaults
# below silently win, and the summary at the end prints a password that does not
# work.
if [ -f .env ]; then
set -a
# shellcheck disable=SC1091
source .env
set +a
fi
BITCOIN_RPC_USER="${BITCOIN_RPC_USER:-rtldev}"
BITCOIN_RPC_PASSWORD="${BITCOIN_RPC_PASSWORD:-rtldev}"