fixed functions again
This commit is contained in:
parent
e682e0fcc6
commit
5d0a94dfaa
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue