fix(delivery): use installed postgres identity for recovery
This commit is contained in:
@@ -344,8 +344,8 @@ def recover_locked(recovery_id: str, data_sha: str, password_file: Path, passwor
|
||||
]
|
||||
for key, setting in {
|
||||
"Type": "exec",
|
||||
"User": "kf-postgres",
|
||||
"Group": "kf-postgres",
|
||||
"User": "postgres",
|
||||
"Group": "postgres",
|
||||
"MemoryMax": "512M",
|
||||
"MemorySwapMax": "0",
|
||||
"CPUQuota": "100%",
|
||||
|
||||
@@ -319,7 +319,7 @@ def run_in_unit() -> dict:
|
||||
"local all all reject\n"
|
||||
).encode(),
|
||||
)
|
||||
write_private(RUNTIME / "pg_ident.conf", b"kf_recovery kf-postgres postgres\n")
|
||||
write_private(RUNTIME / "pg_ident.conf", b"kf_recovery postgres postgres\n")
|
||||
preflight.protected(Path("/usr/bin/postgres"))
|
||||
version = subprocess.run(
|
||||
["/usr/bin/postgres", "--version"],
|
||||
|
||||
Reference in New Issue
Block a user