Add actual patch

This commit is contained in:
Michael Banck 2019-09-20 19:36:39 +02:00
parent 91ed216419
commit c9e40b4ddc

View file

@ -0,0 +1,10 @@
--- ./patroni/postgresql/config.py.orig 2019-09-20 19:35:58.418475569 +0200
+++ ./patroni/postgresql/config.py 2019-09-20 19:36:13.614584041 +0200
@@ -284,7 +284,6 @@
os.rename(self._postgresql_conf, self._postgresql_base_conf)
with open(self._postgresql_conf, 'w') as f:
- os.chmod(self._postgresql_conf, stat.S_IWRITE | stat.S_IREAD)
f.write(self._CONFIG_WARNING_HEADER)
f.write("include '{0}'\n\n".format(self._config.get('custom_conf') or self._postgresql_base_conf_name))
for name, value in sorted((configuration or self._server_parameters).items()):