save postgresql.conf not only on initdb, but on any start of the server.

This commit is contained in:
Oleksii Kliukin
2015-05-20 11:47:19 +02:00
parent 7a2be131bd
commit 75b30d8014
+1 -1
View File
@@ -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):