Add postgresql role
This commit is contained in:
parent
4f97b66c3d
commit
56885d70b6
7 changed files with 152 additions and 4 deletions
playbooks/roles/lego/files/hooks
|
@ -5,12 +5,13 @@ domain="db.serguzim.me"
|
|||
_install() {
|
||||
install --owner=postgres --group=postgres --mode=600 \
|
||||
"$CERTIFICATES_PATH/$domain.$1" \
|
||||
"/var/lib/postgres/data/server.$1"
|
||||
"/etc/postgresql/cert.$1"
|
||||
}
|
||||
|
||||
_install crt
|
||||
_install key
|
||||
|
||||
sudo -u postgres pg_ctl -D /var/lib/postgres/data/ reload
|
||||
#sudo -u postgres pg_ctl -D /var/lib/postgres/data/ reload
|
||||
systemctl reload postgresql
|
||||
|
||||
# vim: ft=sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue