diff --git a/infrastrucure/docker/image/Dockerfile b/infrastrucure/docker/image/Dockerfile index 8c4c960..3d56856 100644 --- a/infrastrucure/docker/image/Dockerfile +++ b/infrastrucure/docker/image/Dockerfile @@ -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 \ No newline at end of file +RUN chmod 700 /tmp/resources/entrypoint.sh /tmp/resources/create_pgpass.sh \ No newline at end of file diff --git a/infrastrucure/docker/image/resources/create_pg_pass.sh b/infrastrucure/docker/image/resources/create_pgpass.sh similarity index 52% rename from infrastrucure/docker/image/resources/create_pg_pass.sh rename to infrastrucure/docker/image/resources/create_pgpass.sh index 09ca410..4562924 100644 --- a/infrastrucure/docker/image/resources/create_pg_pass.sh +++ b/infrastrucure/docker/image/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 diff --git a/infrastrucure/docker/image/resources/entrypoint.sh b/infrastrucure/docker/image/resources/entrypoint.sh index 3b0c469..588e799 100644 --- a/infrastrucure/docker/image/resources/entrypoint.sh +++ b/infrastrucure/docker/image/resources/entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/bash -/tmp/resources/create_pg_pass.sh +/tmp/resources/create_pgpass.sh # Idle process while true; do