Skip to content

Commit 706d244

Browse files
committed
fix proxy system check when installing LE certs
1 parent 5eb4d16 commit 706d244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-letsencrypt-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ for auth in $authz; do
166166
check_result $? "DNS _acme-challenge record wasn't created"
167167
else
168168
if [ -z "$mail" ]; then
169-
if [ "$WEB_SYSTEM" = 'nginx' ] || [ ! -z "$PROXY_SYSTEM" ]; then
169+
if [ "$WEB_SYSTEM" = 'nginx' ] && [ ! -z "$PROXY_SYSTEM" ]; then
170170
if [ ! -z "$mail" ]; then
171171
conf="$HOMEDIR/$user/conf/mail/$root_domain/$PROXY_SYSTEM.conf_letsencrypt"
172172
sconf="$HOMEDIR/$user/conf/mail/$root_domain/$PROXY_SYSTEM.ssl.conf_letsencrypt"

0 commit comments

Comments
 (0)