2024-09-26 22:02:36 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
domain="db.serguzim.me"
|
|
|
|
|
|
|
|
_install() {
|
|
|
|
install --owner=postgres --group=postgres --mode=600 \
|
|
|
|
"$CERTIFICATES_PATH/$domain.$1" \
|
2024-10-31 01:25:02 +00:00
|
|
|
"/etc/postgresql/cert.$1"
|
2024-09-26 22:02:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
_install crt
|
|
|
|
_install key
|
|
|
|
|
2024-10-31 01:25:02 +00:00
|
|
|
#sudo -u postgres pg_ctl -D /var/lib/postgres/data/ reload
|
|
|
|
systemctl reload postgresql
|
2024-09-26 22:02:36 +00:00
|
|
|
|
|
|
|
# vim: ft=sh
|