Skip to content

Commit

Permalink
add more status output during public service hostname detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jjakob committed Jul 8, 2019
1 parent 8a57d67 commit ac1e540
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion certbot_zimbra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,21 @@ find_additional_public_hostnames() {
[ ! -z "$EXTRA_DOMAINS" ] && return

# If it has been requested NOT to perform the search
"$DETECT_PUBLIC_HOSTNAMES" || return
if ! "$DETECT_PUBLIC_HOSTNAMES"; then
! "$QUIET" && echo "Skipping additional public service hostname detection"
return
fi

! "$QUIET" && echo -n "Detecting additional public service hostnames..."
for i in $($ZMPATH/bin/zmprov $ZMPROV_OPTS gad); do
getdomain="$($ZMPATH/bin/zmprov $ZMPROV_OPTS gd $i zimbraPublicServiceHostname | grep zimbraPublicServiceHostname | cut -f 2 -d ' ')"
[ -z "$getdomain" ] && continue
# Skip our primary domain
[ "$getdomain" == "$DOMAIN" ] && continue
EXTRA_DOMAINS="${EXTRA_DOMAINS} $getdomain"
! "$QUIET" && echo -n " $getdomain"
done
! "$QUIET" && echo
return 0
}

Expand Down

0 comments on commit ac1e540

Please sign in to comment.