Skip to content

Commit

Permalink
postgresql: fix initdb options
Browse files Browse the repository at this point in the history
Space after "-A" causes the following error in PostgreSQL 17:
> initdb: error: invalid authentication method " trust" for "local"
> connections
  • Loading branch information
CyberTailor committed Oct 16, 2024
1 parent 022a041 commit f2321b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pifpaf/drivers/postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f2321b9

Please sign in to comment.