From 2a3755c0b0f0443bf6ce82633fc7889472e0ce23 Mon Sep 17 00:00:00 2001 From: Clemens Geibel Date: Fri, 16 Jul 2021 15:59:45 +0200 Subject: [PATCH] Added create-pg-pass to backup entrypoints --- .../image/resources/entrypoint-start-and-wait.sh | 5 +++++ infrastructure/docker-backup/image/resources/entrypoint.sh | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/infrastructure/docker-backup/image/resources/entrypoint-start-and-wait.sh b/infrastructure/docker-backup/image/resources/entrypoint-start-and-wait.sh index 99e4a3c..67a8f3b 100644 --- a/infrastructure/docker-backup/image/resources/entrypoint-start-and-wait.sh +++ b/infrastructure/docker-backup/image/resources/entrypoint-start-and-wait.sh @@ -1,6 +1,11 @@ #!/bin/bash function main() { + file_env POSTGRES_DB + file_env POSTGRES_PASSWORD + file_env POSTGRES_USER + + create-pg-pass while true; do sleep 1m diff --git a/infrastructure/docker-backup/image/resources/entrypoint.sh b/infrastructure/docker-backup/image/resources/entrypoint.sh index c03cb42..924f24c 100755 --- a/infrastructure/docker-backup/image/resources/entrypoint.sh +++ b/infrastructure/docker-backup/image/resources/entrypoint.sh @@ -1,8 +1,15 @@ #!/bin/bash function main() { + file_env POSTGRES_DB + file_env POSTGRES_PASSWORD + file_env POSTGRES_USER + + create-pg-pass + /usr/local/bin/backup.sh } source /usr/local/lib/functions.sh +source /usr/local/lib/pg-functions.sh main