Skip to content
Permalink
Browse files

inverted trigger condition

  • Loading branch information...
serghey-rodin committed Mar 14, 2019
1 parent 6a9b7d3 commit 180d9101316db6f0d8c2e5f35949dc3f8567c05b
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/v-add-web-domain-ssl
@@ -121,14 +121,14 @@ $BIN/v-restart-proxy $restart
check_result $? "Proxy restart failed" >/dev/null

# Updating system ssl dependencies
if [ -z "$VESTA_CERTIFICATE" ]; then
if [ ! -z "$VESTA_CERTIFICATE" ]; then
crt_user=$(echo "$VESTA_CERTIFICATE" |cut -f 1 -d :)
crt_domain=$(echo "$VESTA_CERTIFICATE" |cut -f 2 -d :)
if [ "$user" = "$crt_user" ] && [ "$domain" = "$crt_domain" ]; then
$BIN/v-add-sys-vesta-ssl $user $domain >/dev/null 2>&1
fi
fi
if [ -z "$MAIL_CERTIFICATE" ]; then
if [ ! -z "$MAIL_CERTIFICATE" ]; then
crt_user=$(echo "$MAIL_CERTIFICATE" |cut -f 1 -d :)
crt_domain=$(echo "$MAIL_CERTIFICATE" |cut -f 2 -d :)
if [ "$user" = "$crt_user" ] && [ "$domain" = "$crt_domain" ]; then

0 comments on commit 180d910

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.