fix: check for password file presence to build db url
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
@ -42,7 +42,7 @@ main() {
|
||||
|
||||
main
|
||||
|
||||
if [ -z "${CMD_DB_URL:-""}" ] ; then
|
||||
if [ -n "${CMD_DB_PASSWORD_FILE:-""}" ] ; then
|
||||
export CMD_DB_URL="${CMD_DB_TYPE}://$CMD_DB_USER:$CMD_DB_PASSWORD@$CMD_DB_HOST:5432/$CMD_DB_NAME"
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user