16 lines
327 B
Text
Executable file
16 lines
327 B
Text
Executable file
#!/usr/bin/env sh
|
|
|
|
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"
|
|
}
|
|
|
|
_install crt
|
|
_install key
|
|
|
|
sudo -u postgres pg_ctl -D /var/lib/postgres/data/ reload
|