File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed
Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 8080 aliases_idn=" $domain_alias_idn "
8181fi
8282
83- # Defining vars for httpd_add_config function
83+ # Defining vars for add_config function
8484web_port=$( get_config_value ' $WEB_PORT' )
8585group=" $user "
8686email=" $user @$domain "
102102fi
103103
104104# Adding domain to the httpd.conf
105- httpd_add_config
105+ add_web_config
106106
107107# Building directory tree
108108mkdir $V_HOME /$user /domains/$domain \
Original file line number Diff line number Diff line change 7878# Adding domain to the nginx.conf
7979tpl_file=" $V_WEBTPL /ngingx_vhost_$template .tpl"
8080conf=" $V_HOME /$user /conf/nginx.conf"
81- httpd_add_config
81+ add_web_config
8282
8383# Checking vesta nginx config
8484main_conf=' /etc/nginx/conf.d/vesta_users.conf'
@@ -105,7 +105,7 @@ if [ ! -z "$cert" ]; then
105105 # Adding domain to the snginx.conf
106106 conf=" $V_HOME /$user /conf/snginx.conf"
107107 tpl_file=" $V_WEBTPL /ngingx_vhost_$template .stpl"
108- httpd_add_config
108+ add_web_config
109109
110110 # Checking vesta nginx config
111111 main_conf=' /etc/nginx/conf.d/vesta_users.conf'
Original file line number Diff line number Diff line change 9292fi
9393
9494# Adding domain to the httpd.conf
95- httpd_add_config
95+ add_web_config
9696
9797# Adding certificate to user dir
9898if [ ! -e " $ssl_cert " ]; then
Original file line number Diff line number Diff line change 9696fi
9797
9898# Adding domain to the httpd.conf
99- httpd_add_config
99+ add_web_config
100100
101101# Running template trigger
102102if [ -x $V_WEBTPL /apache_$template .sh ]; then
@@ -118,7 +118,7 @@ if [ ! -z "$cert" = 'yes' ]; then
118118 tpl_file=" $V_WEBTPL /apache_$template .stpl"
119119
120120 # Adding domain to the httpd.conf
121- httpd_add_config
121+ add_web_config
122122
123123 # Running template trigger
124124 if [ -x $V_WEBTPL /apache_$template .sh ]; then
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ for domain in $domains; do
7777
7878 # Adding domain to the tmp_httpd.conf
7979 conf=" $V_HOME /$user /conf/tmp_httpd.conf"
80- httpd_add_config
80+ add_web_config
8181
8282 # Running template trigger
8383 if [ -x $V_WEBTPL /apache_$template .sh ]; then
@@ -101,7 +101,7 @@ for domain in $domains; do
101101 # Adding domain to the shttpd.conf
102102 conf=" $V_HOME /$user /conf/tmp_shttpd.conf"
103103 tpl_file=" $V_WEBTPL /apache_$template .stpl"
104- httpd_add_config
104+ add_web_config
105105
106106 # Running template trigger
107107 if [ -x $V_WEBTPL /apache_$template .sh ]; then
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ sort_dns_records() {
219219 mv -f $conf .tmp $conf
220220}
221221
222- httpd_add_config () {
222+ add_web_config () {
223223 # Adding template to config
224224 cat $tpl_file | \
225225 sed -e " s/%ip%/$ip /g" \
You can’t perform that action at this time.
0 commit comments