Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
letsencrypt: Remove danging fixes from Zulip Server 5.0.
Alex Vandiver150b81f3adf8
diff --git a/puppet/zulip/manifests/profile/app_frontend.pp b/puppet/zulip/manifests/profile/app_frontend.ppindex a549dbdfb4a..f1fbf9986b4 100644--- a/puppet/zulip/manifests/profile/app_frontend.pp+++ b/puppet/zulip/manifests/profile/app_frontend.pp@@ -30,13 +30,6 @@ class zulip::profile::app_frontend {notify => Service['nginx'],}- # We used to install a cron job, but certbot now has a systemd cron- # that does better. This can be removed once upgrading from 5.0 is- # no longer possible.- file { '/etc/cron.d/certbot-renew':- ensure => absent,- }-# Reload nginx after deploying a new cert.file { ['/etc/letsencrypt/renewal-hooks', '/etc/letsencrypt/renewal-hooks/deploy']:ensure => directory,@@ -53,17 +46,6 @@ class zulip::profile::app_frontend {source => 'puppet:///modules/zulip/letsencrypt/nginx-deploy-hook.sh',require => Package[certbot],}- if ! $nginx_http_only {- exec { 'fix-standalone-certbot':- 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 => "${facts['zulip_scripts_path']}/lib/fix-standalone-certbot",- }- }# Restart the server regularly to avoid potential memory leak problems.zulip::cron { 'restart-zulip':diff --git a/scripts/lib/fix-standalone-certbot b/scripts/lib/fix-standalone-certbotdeleted file mode 100755index ed7faaefc88..00000000000--- a/scripts/lib/fix-standalone-certbot+++ /dev/null@@ -1,14 +0,0 @@-#!/usr/bin/env bash--set -eu-set -o pipefail--hostnames=$(grep -l 'authenticator = standalone' /etc/letsencrypt/renewal/*.conf | sed 's/.*\///; s/\.conf$//')--for hostname in $hostnames; do- # Force a cert renewal to force the config file to update- /usr/bin/certbot certonly --webroot --webroot-path=/var/lib/zulip/certbot-webroot/ --force-renewal -d "$hostname"-done--# Pick up any updated certs-service nginx reload