diff options
author | Tharre <tharre3@gmail.com> | 2019-02-19 05:33:14 +0100 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2019-02-19 05:33:14 +0100 |
commit | cbd109adc0822485431fa64e4d552facf05ad02b (patch) | |
tree | 56c79830084c66d596352810978fb63e9037caab /roles/znc/files | |
parent | be9e20c2d2d8f9bb677056ca08e3f41e2b733333 (diff) | |
download | infrastructure-cbd109adc0822485431fa64e4d552facf05ad02b.tar.gz infrastructure-cbd109adc0822485431fa64e4d552facf05ad02b.tar.xz infrastructure-cbd109adc0822485431fa64e4d552facf05ad02b.zip |
Add znc role
Diffstat (limited to 'roles/znc/files')
-rw-r--r-- | roles/znc/files/znc-certbot-hook | 10 |
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 |