Skip to content

Commit 4d41d08

Browse files
authored
Update v-change-mail-domain-sslcert (hestiacp#3920)
Fix missing ssl_dir variable Fix is_object_value_empty when it should be is_object_value_exist
1 parent a59e25c commit 4d41d08

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/v-change-mail-domain-sslcert

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
user=$1
1414
domain=$2
1515
domain_idn=$2
16-
restart=$3
16+
ssl_dir=$3
17+
restart=$4
1718

1819
# Includes
1920
# shellcheck source=/etc/hestiacp/hestia.conf
@@ -40,7 +41,7 @@ is_object_valid 'user' 'USER' "$user"
4041
is_object_unsuspended 'user' 'USER' "$user"
4142
is_object_valid 'mail' 'DOMAIN' "$domain_idn"
4243
is_object_unsuspended 'mail' 'DOMAIN' "$domain_idn"
43-
is_object_value_empty 'mail' 'DOMAIN' "$domain_idn" '$SSL'
44+
is_object_value_exist 'mail' 'DOMAIN' "$domain_idn" '$SSL'
4445
is_web_domain_cert_valid
4546

4647
# Perform verification if read-only mode is enabled

0 commit comments

Comments
 (0)