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
|
--no-password
|
||||||
else
|
else
|
||||||
roles-unlock-command --cacert ${CERTIFICATE_FILE}
|
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} \
|
psql -d template1 -h ${POSTGRES_SERVICE} -p ${POSTGRES_PORT} -U ${POSTGRES_USER} \
|
||||||
--no-password --cacert ${CERTIFICATE_FILE}
|
--no-password
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,8 +118,8 @@ function restore-db() {
|
||||||
--no-password
|
--no-password
|
||||||
else
|
else
|
||||||
db-unlock-command --cacert ${CERTIFICATE_FILE}
|
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} \
|
psql -d ${POSTGRES_DB} -h ${POSTGRES_SERVICE} -p ${POSTGRES_PORT} -U ${POSTGRES_USER} \
|
||||||
--no-password --cacert ${CERTIFICATE_FILE}
|
--no-password
|
||||||
fi
|
fi
|
||||||
}
|
}
|
Loading…
Reference in a new issue