Improve certificates
Add msrg.cc domain for xmpp on wiuwiu.de Add sourcing of service.env
This commit is contained in:
parent
22af530918
commit
8dfe2dc887
6 changed files with 35 additions and 9 deletions
|
@ -2,15 +2,15 @@
|
|||
|
||||
domain="db.serguzim.me"
|
||||
|
||||
docker compose run --rm app "$1" "$domain"
|
||||
|
||||
_install() {
|
||||
install --owner=postgres --group=postgres --mode=600 \
|
||||
"/opt/services/_certificates/$domain.$1" \
|
||||
"/var/lib/postgresql/server.$1"
|
||||
"$CERTIFICATES_PATH/$domain.$1" \
|
||||
"/var/lib/postgres/data/server.$1"
|
||||
}
|
||||
|
||||
_install crt
|
||||
_install key
|
||||
|
||||
sudo -u postgres pg_ctl -D /var/lib/postgres/data/ reload
|
||||
|
||||
# vim: ft=sh
|
||||
|
|
Reference in a new issue