fix(delivery): use installed postgres identity for recovery

This commit is contained in:
2026-10-20 05:31:34 +08:00
parent ee9ebd6d24
commit 0a27704fd4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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%",
+1 -1
View File
@@ -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"],