Skip to content

Commit 4de5019

Browse files
committed
Add password debug output to start.sh
1 parent 0f896ce commit 4de5019

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build-scripts/run/start.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@ SAVED_USER_PASSWORD="${USER_PASSWORD:-}"
1414

1515
source $ENVFILE
1616

17-
# Restore passwords if they were set
17+
# Restore passwords if they were set (they take precedence over values from envfile)
1818
if [[ -n "$SAVED_ADMIN_PASSWORD" ]]; then
1919
export ADMIN_PASSWORD="$SAVED_ADMIN_PASSWORD"
2020
fi
2121
if [[ -n "$SAVED_USER_PASSWORD" ]]; then
2222
export USER_PASSWORD="$SAVED_USER_PASSWORD"
2323
fi
2424

25+
# Debug output to verify passwords are set
26+
echo "DEBUG: ADMIN_PASSWORD is $(if [[ -n "$ADMIN_PASSWORD" ]]; then echo 'set'; else echo 'NOT set'; fi)"
27+
echo "DEBUG: USER_PASSWORD is $(if [[ -n "$USER_PASSWORD" ]]; then echo 'set'; else echo 'NOT set'; fi)"
28+
2529
# docker-compose does not pull those that have `build` section?!
2630
echo "====="
2731
docker pull $DSPACE_UI_IMAGE

0 commit comments

Comments
 (0)