Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
setup: Install a temporary certificate, before certbot runs.
Alex Vandiver76ce8631c019
diff --git a/scripts/lib/install b/scripts/lib/installindex c9a5ed5b464..e648b9ae91b 100755--- a/scripts/lib/install+++ b/scripts/lib/install@@ -369,14 +369,10 @@ elif [ "$package_system" = yum ]; thenfifi-if [ -n "$USE_CERTBOT" ]; then- # Puppet, which is run below, installs the post-deploy hook to- # reload nginx -- but it also installs nginx itself, so we're fine- # to run this now.- "$ZULIP_PATH"/scripts/setup/setup-certbot \- --method=standalone \- "$EXTERNAL_HOST" --email "$ZULIP_ADMINISTRATOR"-elif [ -n "$SELF_SIGNED_CERT" ]; then+# We generate a self-signed cert even with certbot, so we can use the+# webroot authenticator, which requires nginx be set up with a+# certificate.+if [ -n "$SELF_SIGNED_CERT" ] || [ -n "$USE_CERTBOT" ]; then"$ZULIP_PATH"/scripts/setup/generate-self-signed-cert \--exists-ok "${EXTERNAL_HOST:-$(hostname)}"fi@@ -485,6 +481,11 @@ elif [ "$package_system" = yum ]; then:fi+if [ -n "$USE_CERTBOT" ]; then+ "$ZULIP_PATH"/scripts/setup/setup-certbot \+ "$EXTERNAL_HOST" --email "$ZULIP_ADMINISTRATOR"+fi+if has_class "zulip::nginx" && ! has_class "zulip::profile::docker"; then# Check nginx was configured properly now that we've installed it.# Most common failure mode is certs not having been installed.