From b7cd000af6a17bec16bc693df3adb3afb4908dcc Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 20 Oct 2015 23:23:24 -0700 Subject: [PATCH] install: Check nginx configuration is valid. It's better to fail here and have the user correct the issue than fail later. --- scripts/lib/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/lib/install b/scripts/lib/install index 0ff0985d06..f40bf676ce 100755 --- a/scripts/lib/install +++ b/scripts/lib/install @@ -21,6 +21,9 @@ echo -e "[machine]\npuppet_classes = zulip::voyager\ndeploy_type = voyager" > /e # These server restarting bits should be moveable into puppet-land, ideally apt-get -y upgrade if [ -e "/etc/init.d/nginx" ]; then + # Check nginx was configured properly now that we've installed it. + # Most common failure mode is certs not having been installed. + nginx -t service nginx restart fi