From b4dd6ddbbd9360a3548d53a31b524d8c722feea6 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 25 Oct 2024 17:52:50 -0300 Subject: [PATCH] fix: don't overwrite CMD_DB_URL --- entrypoint.sh.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index c586369..ef32cae 100644 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -38,7 +38,7 @@ main() { main -export CMD_DB_URL=postgres://$CMD_DB_USER:$CMD_DB_PASSWORD@$CMD_DB_HOST:5432/$CMD_DB_NAME +export CMD_DB_URL="${CMD_DB_URL:-postgres://$CMD_DB_USER:$CMD_DB_PASSWORD@$CMD_DB_HOST:5432/$CMD_DB_NAME}" # 3wc: `source /docker-entrypoint.sh -e` to load CMD_DB_URL for CLI scripts if [ ! "${1-}" == "-e" ]; then