install: Add nice error message for RabbitMQ not having started.

This commit is contained in:
Tim Abbott 2015-09-29 18:41:31 -07:00
parent 5bf66e04fc
commit 40ec59b93e
1 changed files with 11 additions and 0 deletions

View File

@ -28,6 +28,17 @@ fi
cp -a /root/zulip/zproject/local_settings_template.py /etc/zulip/settings.py
ln -nsf /etc/zulip/settings.py /root/zulip/zproject/local_settings.py
if ! rabbitmqctl status >/dev/null; then
set +x
echo; echo "RabbitMQ seems to not have started properly after the installation process."
echo "Often, this can be caused by misconfigured /etc/hosts in virtualized environments"
echo "See https://github.com/zulip/zulip/issues/53#issuecomment-143805121"
echo "for more information"
echo
set -x
exit 1
fi
/root/zulip/scripts/setup/configure-rabbitmq
/root/zulip/scripts/setup/postgres-init-db