mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
16 lines
397 B
Django/Jinja
16 lines
397 B
Django/Jinja
#!/bin/sh
|
|
|
|
test "$1" = renew || exit 0
|
|
|
|
postgres_domain="{{ inventory_hostname }}"
|
|
|
|
for domain in $RENEWED_DOMAINS; do
|
|
case "$domain" in
|
|
$postgres_domain)
|
|
for pem in /etc/letsencrypt/live/$postgres_domain/{privkey,fullchain,chain}.pem; do
|
|
install -o postgres -g postgres -m 400 $pem /var/lib/postgres/data/$pem
|
|
done
|
|
;;
|
|
esac
|
|
done
|