mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 12:54:58 +00:00
nginx: Fix bugs in new nginx configuration checks.
This commit is contained in:
@@ -74,12 +74,12 @@ ZULIP_PATH="$(realpath $(dirname $0)/../..)"
|
||||
"$ZULIP_PATH"/scripts/lib/check-upstart
|
||||
|
||||
# Check for missing SSL certificates early as well
|
||||
if [ "$PUPPET_CLASSES" = "zulip::voyager" ] && ! [ -e "/etc/ssl/private/zulip.key" ] || ! [ -e "/etc/ssl/certs/zulip.combined-chain.crt" ]; then
|
||||
if [ "$PUPPET_CLASSES" = "zulip::voyager" ] && { ! [ -e "/etc/ssl/private/zulip.key" ] || ! [ -e "/etc/ssl/certs/zulip.combined-chain.crt" ]; }; then
|
||||
set +x
|
||||
echo
|
||||
echo "Could not find SSL certificates!"
|
||||
for f in "/etc/ssl/private/zulip.key" "/etc/ssl/certs/zulip.combined-chain.crt"; do
|
||||
[ -e "/etc/ssl/private/zulip.key" ] || echo " - $f is missing!"
|
||||
[ -e "$f" ] || echo " - $f is missing!"
|
||||
done
|
||||
echo "See http://zulip.readthedocs.io/en/latest/ssl-certificates.html for help."
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user