@@ -44,7 +44,7 @@ is_web_domain_valid
4444is_domain_suspended ' web'
4545
4646# Check SSL is added
47- is_web_domain_value_exist ' $SSL_CERT '
47+ is_web_domain_value_exist ' $SSL '
4848
4949# Checking ssl certificate
5050is_web_domain_cert_valid
@@ -58,8 +58,8 @@ is_web_domain_cert_valid
5858get_web_domain_values
5959tpl_file=" $V_WEBTPL /apache_$TPL .stpl"
6060conf=" $V_HOME /$user /conf/shttpd.conf"
61- old_ssl=" $SSL_CERT "
62- SSL_CERT =" $ssl "
61+ old_ssl=" $SSL "
62+ SSL =" $ssl "
6363
6464# Preparing domain values for the template substitution
6565upd_web_domain_values
@@ -78,11 +78,11 @@ if [ ! -z "$NGINX" ]; then
7878fi
7979
8080# Adding new certificate to user dir
81- cp -f $V_USERS /$user /cert/$SSL_CERT .crt $ssl_cert
82- cp -f $V_USERS /$user /cert/$SSL_CERT .key $ssl_key
81+ cp -f $V_USERS /$user /cert/$SSL .crt $ssl_cert
82+ cp -f $V_USERS /$user /cert/$SSL .key $ssl_key
8383
8484# Deleting old certificate
85- check_cert=$( grep " SSL_CERT ='$old_ssl '" $V_USERS /$user /web.conf | wc -l)
85+ check_cert=$( grep " SSL ='$old_ssl '" $V_USERS /$user /web.conf | wc -l)
8686if [ " $check_cert " -lt 2 ]; then
8787 rm -f $V_HOME /$user /conf/$old_ssl .crt
8888 rm -f $V_HOME /$user /conf/$old_ssl .key
9494# ----------------------------------------------------------#
9595
9696# Adding sslcert in config
97- update_web_domain_value ' $SSL_CERT ' " $SSL_CERT "
97+ update_web_domain_value ' $SSL ' " $SSL "
9898
9999# Adding task to the vesta pipe
100100restart_schedule ' web'
0 commit comments