iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mostly fixes for new error handling
[distro-setup]
/
certbot-renew-hook
diff --git
a/certbot-renew-hook
b/certbot-renew-hook
index 70aa41893f38f4991cd5fea659e50aabc99ab623..ba1e68d0798388ae7556b8fba3b6d79a6adb0d5b 100755
(executable)
--- a/
certbot-renew-hook
+++ b/
certbot-renew-hook
@@
-26,8
+26,12
@@
for ((i=0; i<${#domain_user[@]}; i+=2)); do
user=${domain_user[i+1]}
d=/etc/letsencrypt/live/$domain
user=${domain_user[i+1]}
d=/etc/letsencrypt/live/$domain
- if [[ $RENEWED_LINEAGE ==
$d
]]; then
+ if [[ $RENEWED_LINEAGE ==
"$d"
]]; then
install -m 640 -g $user $d/{privkey.pem,fullchain.pem} $(eval echo ~$user)
exit 0
fi
done
install -m 640 -g $user $d/{privkey.pem,fullchain.pem} $(eval echo ~$user)
exit 0
fi
done
+
+if [[ $RENEWED_LINEAGE == /etc/letsencrypt/live/iankelling.org ]]; then
+ cat /etc/letsencrypt/live/iankelling.org/{privkey,cert,chain}.pem > /var/lib/znc/znc.pem
+fi