Skip to content

Commit e6d6fc7

Browse files
Merge pull request hestiacp#1209 from joubertredrat/524-letsencrypt-public_shtml
Fix on ssl home definition on Lets Encrypt cert renew
2 parents 3fbd301 + edcba71 commit e6d6fc7

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
@@ -111,8 +111,9 @@ else
111111
fi
112112

113113
# Adding SSL
114+
ssl_home=$(search_objects 'web' 'LETSENCRYPT' 'yes' 'SSL_HOME')
114115
$BIN/v-delete-web-domain-ssl $user $domain >/dev/null 2>&1
115-
$BIN/v-add-web-domain-ssl $user $domain $ssl_dir
116+
$BIN/v-add-web-domain-ssl $user $domain $ssl_dir $ssl_home
116117
if [ "$?" -ne '0' ]; then
117118
touch $VESTA/data/queue/letsencrypt.pipe
118119
sed -i "/ $domain /d" $VESTA/data/queue/letsencrypt.pipe

0 commit comments

Comments
 (0)