infrastructure/playbooks/roles/lego/files/hooks/db.serguzim.me

17 lines
311 B
Text
Executable file

#!/usr/bin/env sh
domain="db.serguzim.me"
_install() {
install --owner=postgres --group=postgres --mode=600 \
"$CERTIFICATES_PATH/$domain.$1" \
"/etc/postgresql/cert.$1"
}
_install crt
_install key
#sudo -u postgres pg_ctl -D /var/lib/postgres/data/ reload
systemctl reload postgresql
# vim: ft=sh