From f2321b982341a6bfb391c2f865f458c5d334cf7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20=E2=80=9CCyberTailor=E2=80=9D?= Date: Wed, 16 Oct 2024 16:04:51 +0500 Subject: [PATCH] postgresql: fix initdb options Space after "-A" causes the following error in PostgreSQL 17: > initdb: error: invalid authentication method " trust" for "local" > connections --- pifpaf/drivers/postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pifpaf/drivers/postgresql.py b/pifpaf/drivers/postgresql.py index e817e9d..c2408a4 100644 --- a/pifpaf/drivers/postgresql.py +++ b/pifpaf/drivers/postgresql.py @@ -53,7 +53,7 @@ def _setUp(self): self.putenv("PGDATABASE", "postgres", True) _, pgbindir = self._exec(["pg_config", "--bindir"], stdout=True) pgctl = os.path.join(pgbindir.strip().decode(), "pg_ctl") - self._exec([pgctl, "-o", "'-A trust'", "initdb"]) + self._exec([pgctl, "-o", "'-Atrust'", "initdb"]) if not self.sync: cfgfile = os.path.join(self.tempdir, 'postgresql.conf') with open(cfgfile, 'a') as cfg: