mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
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:
parent
df48de1140
commit
1a6cb0b0a8
1 changed files with 10 additions and 0 deletions
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue