Adding LE hook for znc
This commit is contained in:
parent
c3a0db7db9
commit
ff3e41f754
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#https://wiki.znc.in/Signed_SSL_certificate
|
||||||
|
ZNCDOMAIN="thunix.net-0001"
|
||||||
|
ZNCPEM=/var/lib/znc/znc.pem
|
||||||
|
|
||||||
|
#[[ $RENEWED_LINEAGE != "/etc/letsencrypt/live/$ZNCDOMAIN" ]] && exit 0
|
||||||
|
echo "Updating znc.pem Before ZNC 1.7"
|
||||||
|
cat /etc/letsencrypt/live/$ZNCDOMAIN/privkey.pem > $ZNCPEM
|
||||||
|
cat /etc/letsencrypt/live/$ZNCDOMAIN/fullchain.pem >> $ZNCPEM
|
|
@ -51,3 +51,11 @@
|
||||||
owner: znc
|
owner: znc
|
||||||
group: root
|
group: root
|
||||||
mode: 0770
|
mode: 0770
|
||||||
|
|
||||||
|
- name: Install LE hook
|
||||||
|
copy:
|
||||||
|
src: ../files/etc/letsencrypt/renewal-hooks/update-znc.pem
|
||||||
|
dest: /etc/letsencrypt/renewal-hooks/update-znc.pem
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 755
|
||||||
|
|
Loading…
Reference in New Issue