Changed name from .pg_pass to .pgpass
This commit is contained in:
parent
bcd04af38b
commit
70b843b69b
3 changed files with 5 additions and 5 deletions
|
@ -25,4 +25,4 @@ RUN apt-get -y install postgresql
|
|||
|
||||
# Prepare Entrypoint Script
|
||||
ADD resources /tmp/resources
|
||||
RUN chmod 700 /tmp/resources/entrypoint.sh /tmp/resources/create_pg_pass.sh
|
||||
RUN chmod 700 /tmp/resources/entrypoint.sh /tmp/resources/create_pgpass.sh
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "${POSTGRES_HOST}:$(cat ${POSTGRES_DB_FILE}):$(cat ${POSTGRES_USER_FILE}):$(cat ${DB_PASSWORD_FILE})" > /root/.pg_pass
|
||||
echo "${POSTGRES_HOST}:template1:$(cat ${POSTGRES_USER_FILE}):$(cat ${DB_PASSWORD_FILE})" >> /root/.pg_pass
|
||||
chmod 0600 /root/.pg_pass
|
||||
echo "${POSTGRES_HOST}:$(cat ${POSTGRES_DB_FILE}):$(cat ${POSTGRES_USER_FILE}):$(cat ${DB_PASSWORD_FILE})" > /root/.pgpass
|
||||
echo "${POSTGRES_HOST}:template1:$(cat ${POSTGRES_USER_FILE}):$(cat ${DB_PASSWORD_FILE})" >> /root/.pgpass
|
||||
chmod 0600 /root/.pgpass
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
/tmp/resources/create_pg_pass.sh
|
||||
/tmp/resources/create_pgpass.sh
|
||||
|
||||
# Idle process
|
||||
while true; do
|
||||
|
|
Loading…
Reference in a new issue