Skip to content

Commit

Permalink
config PATRONICTL_CONFIG_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
vtomasr5 committed Jun 5, 2020
1 parent 654380a commit ba64282
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions postgresql-cluster-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit ba64282

Please sign in to comment.