forked from evolix/ansible-roles
fix(certbot): Fix hook for dovecot (too strict)
When we use a separate certificate for POP3 and IMAP there might be blank characters (almost certainly spaces but might as well be more lax) before `ssl_cert` which resulted in these lines not being detected and the hook not being played, forcing manual intervention. This commit fixes that problem by accepting blank characters before ssl_certs. (`\b` might be even better...)
This commit is contained in:
parent
fba894cad9
commit
0ca31b91fe
|
@ -49,6 +49,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
||||||
* webapps/nextcloud: fix misplaced gid attribute
|
* webapps/nextcloud: fix misplaced gid attribute
|
||||||
* webapps/nextcloud: fix missing gid
|
* webapps/nextcloud: fix missing gid
|
||||||
* check stat.exists before stat.isdir
|
* check stat.exists before stat.isdir
|
||||||
|
* certbot: Fix hook for dovecot when more than one certificate is used (eg. different certificates for POP3 and IMAP)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ config_check() {
|
||||||
${doveconf_bin} > /dev/null 2>&1
|
${doveconf_bin} > /dev/null 2>&1
|
||||||
}
|
}
|
||||||
letsencrypt_used() {
|
letsencrypt_used() {
|
||||||
${doveconf_bin} | grep -E "^ssl_cert[^_]" | grep -q "letsencrypt"
|
${doveconf_bin} | grep -E "^[[:blank:]]*ssl_cert[^_]" | grep -q "letsencrypt"
|
||||||
}
|
}
|
||||||
main() {
|
main() {
|
||||||
if daemon_found_and_running; then
|
if daemon_found_and_running; then
|
||||||
|
|
Loading…
Reference in a new issue