summaryrefslogtreecommitdiffstats
path: root/roles/znc/files/znc-certbot-hook
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2019-02-19 05:33:14 +0100
committerTharre <tharre3@gmail.com>2019-02-19 05:33:14 +0100
commitcbd109adc0822485431fa64e4d552facf05ad02b (patch)
tree56c79830084c66d596352810978fb63e9037caab /roles/znc/files/znc-certbot-hook
parentbe9e20c2d2d8f9bb677056ca08e3f41e2b733333 (diff)
downloadinfrastructure-cbd109adc0822485431fa64e4d552facf05ad02b.tar.gz
infrastructure-cbd109adc0822485431fa64e4d552facf05ad02b.tar.xz
infrastructure-cbd109adc0822485431fa64e4d552facf05ad02b.zip
Add znc role
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