fixed functions again

This commit is contained in:
bom 2021-11-26 12:35:48 +01:00
parent e682e0fcc6
commit 5d0a94dfaa

View file

@ -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
}