* debian/pg_createcluster_patroni: Pass $DATADIR variable to pg_createcluster
if specified.
This commit is contained in:
parent
c49ecb7f92
commit
ec13d27493
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -3,6 +3,8 @@ patroni (1.6.5-2) UNRELEASED; urgency=medium
|
||||||
[ Michael Banck ]
|
[ Michael Banck ]
|
||||||
* debian/pg_createconfig_patroni: Allow re-creating configuration file for
|
* debian/pg_createconfig_patroni: Allow re-creating configuration file for
|
||||||
already existing clusters/ports, patch by Tomas Pospisek (Closes: #953162).
|
already existing clusters/ports, patch by Tomas Pospisek (Closes: #953162).
|
||||||
|
* debian/pg_createcluster_patroni: Pass $DATADIR variable to pg_createcluster
|
||||||
|
if specified.
|
||||||
|
|
||||||
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Mon, 27 Apr 2020 18:25:04 +0200
|
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Mon, 27 Apr 2020 18:25:04 +0200
|
||||||
|
|
||||||
|
|
7
debian/pg_createcluster_patroni
vendored
7
debian/pg_createcluster_patroni
vendored
|
@ -27,5 +27,10 @@ else
|
||||||
CLUSTER=$(echo $SCOPE | cut -d'/' -f2- )
|
CLUSTER=$(echo $SCOPE | cut -d'/' -f2- )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pg_createcluster --start-conf=manual $VERSION $CLUSTER
|
if [ -n "$DATADIR" ]
|
||||||
|
then
|
||||||
|
pg_createcluster --start-conf=manual --datadir=$DATADIR $VERSION $CLUSTER
|
||||||
|
else
|
||||||
|
pg_createcluster --start-conf=manual $VERSION $CLUSTER
|
||||||
|
fi
|
||||||
exit $?
|
exit $?
|
||||||
|
|
Loading…
Reference in a new issue