* debian/tests/acceptance: Fix DCS check for zookeeper in case etcd-server is
installed as well.
This commit is contained in:
parent
faea09fd0d
commit
88f6008c75
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -1,6 +1,8 @@
|
|||
patroni (1.5.4-6) UNRELEASED; urgency=medium
|
||||
|
||||
*
|
||||
[ Michael Banck ]
|
||||
* debian/tests/acceptance: Fix DCS check for zookeeper in case etcd-server is
|
||||
installed as well.
|
||||
|
||||
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Mon, 04 Feb 2019 12:15:43 +0100
|
||||
|
||||
|
|
2
debian/tests/acceptance
vendored
2
debian/tests/acceptance
vendored
|
@ -15,7 +15,7 @@ then
|
|||
SU='su postgres -p -c'
|
||||
|
||||
# zookeeper must be started manually (as root)
|
||||
if ! [ -x /usr/bin/etcd ] && [ -x /etc/init.d/zookeeper ]; then
|
||||
if [ "$DCS" = "zookeeper" ]; then
|
||||
# JAVA_OPTS need to be set, otherwise zookeeper is not reachable via IPV4
|
||||
sed -i -e 's/#JAVA_OPTS=""/JAVA_OPTS="-Djava.net.preferIPv4Stack=true"/' /etc/default/zookeeper
|
||||
/etc/init.d/zookeeper start
|
||||
|
|
Loading…
Reference in a new issue