Merge branch 'master' of github.com:CyberDem0n/governor

This commit is contained in:
Alexander Kukushkin
2015-05-19 14:02:44 +02:00
8 changed files with 595 additions and 6 deletions
+3 -6
View File
@@ -87,12 +87,9 @@ class Postgresql:
return not os.path.exists(self.data_dir) or os.listdir(self.data_dir) == []
def initialize(self):
if os.system(self._pg_ctl + ' initdb -o --encoding=UTF8') == 0:
self.write_pg_hba()
return True
return False
ret = os.system(self._pg_ctl + ' initdb -o --encoding=UTF8') == 0
ret and self.write_pg_hba()
return ret
def sync_from_leader(self, leader):
r = parseurl(leader.address)