From c9e40b4ddcf35576b496421f7fbe980372794598 Mon Sep 17 00:00:00 2001 From: Michael Banck Date: Fri, 20 Sep 2019 19:36:39 +0200 Subject: [PATCH] Add actual patch --- debian/patches/disable_postgresql.conf_chmod.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/debian/patches/disable_postgresql.conf_chmod.patch b/debian/patches/disable_postgresql.conf_chmod.patch index e69de29..3c96e15 100644 --- a/debian/patches/disable_postgresql.conf_chmod.patch +++ b/debian/patches/disable_postgresql.conf_chmod.patch @@ -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()):