From 5d0a94dfaa224bdde5efb7677ddc94979512b3cd Mon Sep 17 00:00:00 2001 From: bom Date: Fri, 26 Nov 2021 12:35:48 +0100 Subject: [PATCH] fixed functions again --- infrastructure/docker/image/resources/pg-functions.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/infrastructure/docker/image/resources/pg-functions.sh b/infrastructure/docker/image/resources/pg-functions.sh index 53242dc..649e553 100644 --- a/infrastructure/docker/image/resources/pg-functions.sh +++ b/infrastructure/docker/image/resources/pg-functions.sh @@ -103,9 +103,9 @@ function restore-roles() { --no-password else roles-unlock-command --cacert ${CERTIFICATE_FILE} - restic -r ${RESTIC_REPOSITORY}/pg-role dump latest stdin | \ + restic -r ${RESTIC_REPOSITORY}/pg-role dump latest stdin --cacert ${CERTIFICATE_FILE} | \ psql -d template1 -h ${POSTGRES_SERVICE} -p ${POSTGRES_PORT} -U ${POSTGRES_USER} \ - --no-password --cacert ${CERTIFICATE_FILE} + --no-password fi } @@ -118,8 +118,8 @@ function restore-db() { --no-password else db-unlock-command --cacert ${CERTIFICATE_FILE} - restic -r ${RESTIC_REPOSITORY}/pg_database dump latest stdin | \ + restic -r ${RESTIC_REPOSITORY}/pg_database dump latest stdin --cacert ${CERTIFICATE_FILE} | \ psql -d ${POSTGRES_DB} -h ${POSTGRES_SERVICE} -p ${POSTGRES_PORT} -U ${POSTGRES_USER} \ - --no-password --cacert ${CERTIFICATE_FILE} + --no-password fi } \ No newline at end of file