#!/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