From ba642826b9470fd90329eaf3d163d4ddff606339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicen=C3=A7=20Juan=20Tom=C3=A0s=20Montserrat?= Date: Fri, 5 Jun 2020 19:19:03 +0200 Subject: [PATCH] config PATRONICTL_CONFIG_FILE --- postgresql-cluster-setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/postgresql-cluster-setup.sh b/postgresql-cluster-setup.sh index a5760dd..b722f2b 100755 --- a/postgresql-cluster-setup.sh +++ b/postgresql-cluster-setup.sh @@ -39,6 +39,8 @@ function setup_patroni() { cp -p /vagrant/patroni02.yml /etc/patroni/patroni.yml fi cp -p /vagrant/patroni.service /etc/systemd/system/ + echo "export PATRONICTL_CONFIG_FILE=/etc/patroni/patroni.yml" >> /etc/environment + source /etc/environment systemctl daemon-reload }