mirror of https://github.com/zulip/zulip.git
puppet: Check that certbot certs are in use before fixing them.
It is possible to have previously installed certbot, but switched back to using self-signed certificates -- in which case renewing them using certbot may fail. Verify that the certificate is a symlink into certbot's output directory before running `fix-standalone-certbot`.
This commit is contained in:
parent
7e94e3b370
commit
c97162e485
|
@ -61,7 +61,12 @@ class zulip::profile::app_frontend {
|
|||
require => Package[certbot],
|
||||
}
|
||||
exec { 'fix-standalone-certbot':
|
||||
onlyif => 'test -d /etc/letsencrypt/renewal && grep -qx "authenticator = standalone" /etc/letsencrypt/renewal/*.conf',
|
||||
onlyif => @(EOT),
|
||||
test -L /etc/ssl/certs/zulip.combined-chain.crt &&
|
||||
readlink /etc/ssl/certs/zulip.combined-chain.crt | grep -q /etc/letsencrypt/live/ &&
|
||||
test -d /etc/letsencrypt/renewal &&
|
||||
grep -qx "authenticator = standalone" /etc/letsencrypt/renewal/*.conf
|
||||
| EOT
|
||||
command => "${::zulip_scripts_path}/lib/fix-standalone-certbot",
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue