Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

setup-certbot: Reinstate nginx reload after installation.

Alex Vandiverf6520a97cde1
diff --git a/scripts/setup/setup-certbot b/scripts/setup/setup-certbot
index 5bd524ef7e2..610365ce7de 100755
--- a/scripts/setup/setup-certbot
+++ b/scripts/setup/setup-certbot
@@ -125,4 +125,12 @@ if [ -z "$skip_symlink" ]; then
symlink_with_backup "$CERT_DIR"/fullchain.pem /etc/ssl/certs/zulip.combined-chain.crt
fi
+# "certbot certonly" does not run deploy hooks, so reload nginx if
+# need be to pick up the new certificate.
+case "$method" in
+ webroot)
+ service nginx reload
+ ;;
+esac
+
echo "Certbot SSL certificate configuration succeeded."