mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
inverted trigger condition
This commit is contained in:
parent
6a9b7d3507
commit
180d910131
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue