* debian/pg_createconfig_patroni: Make variable-substitution globally.

This commit is contained in:
Michael Banck 2018-11-10 17:29:46 +01:00
parent b2261bfc33
commit a9e6731ada
2 changed files with 5 additions and 4 deletions

3
debian/changelog vendored
View file

@ -1,6 +1,7 @@
patroni (1.5.1-2) UNRELEASED; urgency=medium
*
[ Michael Banck ]
* debian/pg_createconfig_patroni: Make variable-substitution globally.
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Mon, 05 Nov 2018 11:43:09 +0100

View file

@ -75,7 +75,7 @@ echo "" >> $CONFIG_FILE
# add remaining patroni configuration from template
cat /etc/patroni/config.yml.in | \
sed -e s/@VERSION@/${VERSION}/ \
-e s/@CLUSTER@/${CLUSTER}/ \
-e s/@HOSTIP@/${HOSTIP}/ \
sed -e s/@VERSION@/${VERSION}/g \
-e s/@CLUSTER@/${CLUSTER}/g \
-e s/@HOSTIP@/${HOSTIP}/g \
>> $CONFIG_FILE