mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-01-25 21:40:19 +00:00
Adding LE hook for znc
This commit is contained in:
10
roles/shell/files/etc/letsencrypt/renewal-hooks/update-znc.pem
Executable file
10
roles/shell/files/etc/letsencrypt/renewal-hooks/update-znc.pem
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user