mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
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:
@@ -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
|
# These server restarting bits should be moveable into puppet-land, ideally
|
||||||
apt-get -y upgrade
|
apt-get -y upgrade
|
||||||
if [ -e "/etc/init.d/nginx" ]; then
|
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
|
service nginx restart
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user