diff --git a/helpers/postgresql.py b/helpers/postgresql.py index 7bf16270..2d17dd26 100644 --- a/helpers/postgresql.py +++ b/helpers/postgresql.py @@ -92,7 +92,6 @@ class Postgresql: def initialize(self): if os.system(self._pg_ctl + ' initdb') == 0: - self.save_postgresql_conf() self.write_pg_hba() return True @@ -208,6 +207,7 @@ class Postgresql: ret = os.system(self._pg_ctl + ' start -o "{}"'.format(self.server_options())) == 0 ret and self.load_replication_slots() + self.save_postgresql_conf() return ret def stop(self):