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()):