File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- SECRET_DIR= $1
4- echo $SECRET_DIR
3+ __dir= ${1}
4+ echo ${__dir}
55echo " Generating PGPASS file"
6- POSTGRES_DB=' ' ${POSTGRES_DB:- $(< ' ' ${SECRET_DIR }/ postgres_db)}
7- POSTGRES_USER=' ' ${POSTGRES_USER:- $(< ' ' ${SECRET_DIR }/ postgres_user)}
8- POSTGRES_PASSWORD=' ' ${POSTGRES_PASSWORD:- $(< ' ' ${SECRET_DIR }/ postgres_password)}
9- echo " '' ${POSTGRES_HOST} :'' ${POSTGRES_PORT} :'' ${POSTGRES_DB} :'' ${POSTGRES_USER} :'' ${POSTGRES_PASSWORD} " > /configuration/pgpass
6+ POSTGRES_DB=${POSTGRES_DB:- $(< ${__dir }/ postgres_db)}
7+ POSTGRES_USER=${POSTGRES_USER:- $(< ${__dir }/ postgres_user)}
8+ POSTGRES_PASSWORD=${POSTGRES_PASSWORD:- $(< ${__dir }/ postgres_password)}
9+ echo " ${POSTGRES_HOST} :${POSTGRES_PORT} :${POSTGRES_DB} :${POSTGRES_USER} :${POSTGRES_PASSWORD} " > /configuration/pgpass
1010chmod 0600 /configuration/pgpass
You can’t perform that action at this time.
0 commit comments