Skip to content

Commit edcba71

Browse files
committed
Fix on ssl home definition on Lets Encrypt cert renew
1 parent a07eb1d commit edcba71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/v-add-letsencrypt-domain

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# options: USER DOMAIN [ALIASES] [RESTART] [NOTIFY]
44
#
55
# The function turns on SSL support for a domain. Parameter ssl_dir is a path
6-
# to directory where 2 or 3 ssl files can be found. Certificate file
6+
# to directory where 2 or 3 ssl files can be found. Certificate file
77
# domain.tld.crt and its key domain.tld.key are mandatory. Certificate
88
# authority domain.tld.ca file is optional. If home directory parameter
99
# (ssl_home) is not set, https domain uses public_shtml as separate
@@ -108,8 +108,9 @@ else
108108
fi
109109

110110
# Adding SSL
111+
ssl_home=$(search_objects 'web' 'LETSENCRYPT' 'yes' 'SSL_HOME')
111112
$BIN/v-delete-web-domain-ssl $user $domain >/dev/null 2>&1
112-
$BIN/v-add-web-domain-ssl $user $domain $ssl_dir
113+
$BIN/v-add-web-domain-ssl $user $domain $ssl_dir $ssl_home
113114
if [ "$?" -ne '0' ]; then
114115
touch $VESTA/data/queue/letsencrypt.pipe
115116
sed -i "/ $domain /d" $VESTA/data/queue/letsencrypt.pipe

0 commit comments

Comments
 (0)