install: Check nginx configuration is valid.

It's better to fail here and have the user correct the issue than fail
later.
This commit is contained in:
Tim Abbott 2015-10-20 23:23:24 -07:00
parent 33295180a9
commit b7cd000af6
1 changed files with 3 additions and 0 deletions

View File

@ -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