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

This commit is contained in:
Oleksii Kliukin
2015-05-19 13:56:42 +02:00
parent ae631aae69
commit 380f0a27ac
+1 -1
View File
@@ -93,7 +93,6 @@ class Postgresql:
def initialize(self):
if os.system(self._pg_ctl + ' initdb') == 0:
self.save_postgresql_conf()
self.write_pg_hba()
return True
@@ -209,6 +208,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):