letsencrypt.hook.d.j2 368 Bytes
Newer Older
1
2
3
4
#!/bin/sh

test "$1" = renew || exit 0

5
6
quassel_domain="{{ quassel_domain }}"

7
8
for domain in $RENEWED_DOMAINS; do
  case "$domain" in
9
10
    $quassel_domain)
      cat /etc/letsencrypt/live/$quassel_domain/{privkey,fullchain}.pem |
11
        install -o root -g quassel -m 640 /dev/stdin /var/lib/quassel/quasselCert.pem
12
13
14
15
      systemctl restart quassel
      ;;
  esac
done