From 8a57d67ad4687bd56e94f9fd572d3b034ae08870 Mon Sep 17 00:00:00 2001 From: Jernej Jakob Date: Mon, 8 Jul 2019 17:34:16 +0200 Subject: [PATCH] fix #85 --- certbot_zimbra.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/certbot_zimbra.sh b/certbot_zimbra.sh index bf2cf05..512655e 100755 --- a/certbot_zimbra.sh +++ b/certbot_zimbra.sh @@ -186,6 +186,8 @@ patch_nginx() { return fi + [ -z $WEBROOT ] && echo "Unexpected error: patch_nginx WEbROOT not set. Exiting." && exit 1 + ! "$QUIET" && echo "Patching nginx templates." set -e @@ -604,10 +606,10 @@ if ! "$DEPLOY_ONLY"; then if "$NO_NGINX"; then ! check_port "$PORT" && echo "Error: port check failed. A web server to use for letsencrypt authentication of the domain $DOMAIN must be listening on the port specified with --port." && exit 1 else + WEBROOT="$ZMWEBROOT" check_zimbra_proxy ! check_port "$PORT" nginx zimbra && echo "Error: port check failed. If you have overridden the port with --port, a web server to use for letsencrypt authentication of the domain $DOMAIN must be listening on it." && exit 1 patch_nginx - WEBROOT="$ZMWEBROOT" fi "$PATCH_ONLY" && exit 0