Skip to content

Commit 4a4dcb1

Browse files
committed
renamed httpd_add_config to add_web_config
1 parent 31cf0b0 commit 4a4dcb1

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

bin/v_add_web_domain

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ else
8080
aliases_idn="$domain_alias_idn"
8181
fi
8282

83-
# Defining vars for httpd_add_config function
83+
# Defining vars for add_config function
8484
web_port=$(get_config_value '$WEB_PORT')
8585
group="$user"
8686
email="$user@$domain"
@@ -102,7 +102,7 @@ else
102102
fi
103103

104104
# Adding domain to the httpd.conf
105-
httpd_add_config
105+
add_web_config
106106

107107
# Building directory tree
108108
mkdir $V_HOME/$user/domains/$domain \

bin/v_add_web_domain_nginx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ fi
7878
# Adding domain to the nginx.conf
7979
tpl_file="$V_WEBTPL/ngingx_vhost_$template.tpl"
8080
conf="$V_HOME/$user/conf/nginx.conf"
81-
httpd_add_config
81+
add_web_config
8282

8383
# Checking vesta nginx config
8484
main_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'

bin/v_add_web_domain_ssl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ else
9292
fi
9393

9494
# Adding domain to the httpd.conf
95-
httpd_add_config
95+
add_web_config
9696

9797
# Adding certificate to user dir
9898
if [ ! -e "$ssl_cert" ]; then

bin/v_change_web_domain_tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ else
9696
fi
9797

9898
# Adding domain to the httpd.conf
99-
httpd_add_config
99+
add_web_config
100100

101101
# Running template trigger
102102
if [ -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

bin/v_rebuild_web_domains

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

func/domain_func.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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" \

0 commit comments

Comments
 (0)