* debian/pg_createconfig_patroni: Set owner of Patroni configuration file to

postgres.
This commit is contained in:
Michael Banck 2019-01-14 21:00:56 +01:00
parent 182ad5782e
commit 4724130eb7
2 changed files with 7 additions and 1 deletions

4
debian/changelog vendored
View file

@ -1,6 +1,8 @@
patroni (1.5.3-2) UNRELEASED; urgency=medium
*
[ Michael Banck ]
* debian/pg_createconfig_patroni: Set owner of Patroni configuration file to
postgres.
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Mon, 14 Jan 2019 12:24:56 +0100

View file

@ -79,3 +79,7 @@ cat /etc/patroni/config.yml.in | \
-e s/@CLUSTER@/${CLUSTER}/g \
-e s/@HOSTIP@/${HOSTIP}/g \
>> $CONFIG_FILE
# Set permissions
chown postgres:postgres $CONFIG_FILE
chmod 660 $CONFIG_FILE