Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppet: Check that certbot certs are in use before fixing them.
Alex Vandiverc97162e48572
diff --git a/puppet/zulip/manifests/profile/app_frontend.pp b/puppet/zulip/manifests/profile/app_frontend.ppindex 5e46e548292..c76e970a73c 100644--- a/puppet/zulip/manifests/profile/app_frontend.pp+++ b/puppet/zulip/manifests/profile/app_frontend.pp@@ -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+ | EOTcommand => "${::zulip_scripts_path}/lib/fix-standalone-certbot",}