From 1a6cb0b0a89daf2f3cb842dc4825ad7782635e24 Mon Sep 17 00:00:00 2001 From: saubyk <39208279+saubyk@users.noreply.github.com> Date: Thu, 16 Jul 2026 00:07:18 -0700 Subject: [PATCH] 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. --- docker/scripts/seed.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docker/scripts/seed.sh b/docker/scripts/seed.sh index 7134cd7f..e0495d57 100755 --- a/docker/scripts/seed.sh +++ b/docker/scripts/seed.sh @@ -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}"