Skip to content

Commit

Permalink
fix #85
Browse files Browse the repository at this point in the history
  • Loading branch information
jjakob committed Jul 8, 2019
1 parent 972afca commit 8a57d67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion certbot_zimbra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8a57d67

Please sign in to comment.