mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-26 23:50:23 +00:00
save postgresql.conf not only on initdb, but on any start of the server.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user