Merge branch 'master' of github.com:DomainDrivenArchitecture/dda-backup

This commit is contained in:
Jan Krebs 2020-11-19 16:01:22 +01:00
commit e2aa11e410
3 changed files with 5 additions and 5 deletions

View file

@ -25,4 +25,4 @@ RUN apt-get -y install postgresql
# Prepare Entrypoint Script # Prepare Entrypoint Script
ADD resources /tmp/resources 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

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
echo "${POSTGRES_HOST}:$(cat ${POSTGRES_DB_FILE}):$(cat ${POSTGRES_USER_FILE}):$(cat ${DB_PASSWORD_FILE})" > /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/.pg_pass echo "${POSTGRES_HOST}:template1:$(cat ${POSTGRES_USER_FILE}):$(cat ${DB_PASSWORD_FILE})" >> /root/.pgpass
chmod 0600 /root/.pg_pass chmod 0600 /root/.pgpass

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
/tmp/resources/create_pg_pass.sh /tmp/resources/create_pgpass.sh
# Idle process # Idle process
while true; do while true; do