File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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
111111fi
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
116117if [ " $? " -ne ' 0' ]; then
117118 touch $VESTA /data/queue/letsencrypt.pipe
118119 sed -i " / $domain /d" $VESTA /data/queue/letsencrypt.pipe
You can’t perform that action at this time.
0 commit comments