|
|
@@ -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
|