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 }