summaryrefslogtreecommitdiffstats
path: root/roles/znc/files/znc-certbot-hook
diff options
context:
space:
mode:
Diffstat (limited to 'roles/znc/files/znc-certbot-hook')
-rw-r--r--roles/znc/files/znc-certbot-hook10
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/znc/files/znc-certbot-hook b/roles/znc/files/znc-certbot-hook
new file mode 100644
index 0000000..03273a8
--- /dev/null
+++ b/roles/znc/files/znc-certbot-hook
@@ -0,0 +1,10 @@
+#/bin/sh
+set -e
+
+for domain in $RENEWED_DOMAINS; do
+ case $domain in
+ znc.th73.ovh)
+ cat /etc/letsencrypt/live/znc.th73.ovh/{privkey.pem,cert.pem,chain.pem} > /var/lib/znc/.znc/znc.pem
+ ;;
+ esac
+done