Bläddra i källkod

renamed httpd_add_config to add_web_config

Serghey Rodin 14 år sedan
förälder
incheckning
4a4dcb1804

+ 2 - 2
bin/v_add_web_domain

@@ -80,7 +80,7 @@ else
     aliases_idn="$domain_alias_idn"
 fi
 
-# Defining vars for httpd_add_config function
+# Defining vars for add_config function
 web_port=$(get_config_value '$WEB_PORT')
 group="$user"
 email="$user@$domain"
@@ -102,7 +102,7 @@ else
 fi
 
 # Adding domain to the httpd.conf
-httpd_add_config
+add_web_config
 
 # Building directory tree
 mkdir $V_HOME/$user/domains/$domain \

+ 2 - 2
bin/v_add_web_domain_nginx

@@ -78,7 +78,7 @@ fi
 # Adding domain to the nginx.conf
 tpl_file="$V_WEBTPL/ngingx_vhost_$template.tpl"
 conf="$V_HOME/$user/conf/nginx.conf"
-httpd_add_config
+add_web_config
 
 # Checking vesta nginx config
 main_conf='/etc/nginx/conf.d/vesta_users.conf'
@@ -105,7 +105,7 @@ if [ ! -z "$cert" ]; then
     # Adding domain to the snginx.conf
     conf="$V_HOME/$user/conf/snginx.conf"
     tpl_file="$V_WEBTPL/ngingx_vhost_$template.stpl"
-    httpd_add_config
+    add_web_config
 
     # Checking vesta nginx config
     main_conf='/etc/nginx/conf.d/vesta_users.conf'

+ 1 - 1
bin/v_add_web_domain_ssl

@@ -92,7 +92,7 @@ else
 fi
 
 # Adding domain to the httpd.conf
-httpd_add_config
+add_web_config
 
 # Adding certificate to user dir
 if [ ! -e "$ssl_cert" ]; then

+ 2 - 2
bin/v_change_web_domain_tpl

@@ -96,7 +96,7 @@ else
 fi
 
 # Adding domain to the httpd.conf
-httpd_add_config
+add_web_config
 
 # Running template trigger
 if [ -x $V_WEBTPL/apache_$template.sh ]; then
@@ -118,7 +118,7 @@ if [ ! -z "$cert" = 'yes' ]; then
     tpl_file="$V_WEBTPL/apache_$template.stpl"
 
     # Adding domain to the httpd.conf
-    httpd_add_config
+    add_web_config
 
     # Running template trigger
     if [ -x $V_WEBTPL/apache_$template.sh ]; then

+ 2 - 2
bin/v_rebuild_web_domains

@@ -77,7 +77,7 @@ for domain in $domains; do
 
     # Adding domain to the tmp_httpd.conf
     conf="$V_HOME/$user/conf/tmp_httpd.conf"
-    httpd_add_config
+    add_web_config
 
     # Running template trigger
     if [ -x $V_WEBTPL/apache_$template.sh ]; then
@@ -101,7 +101,7 @@ for domain in $domains; do
         # Adding domain to the shttpd.conf
         conf="$V_HOME/$user/conf/tmp_shttpd.conf"
         tpl_file="$V_WEBTPL/apache_$template.stpl"
-        httpd_add_config
+        add_web_config
 
         # Running template trigger
         if [ -x $V_WEBTPL/apache_$template.sh ]; then

+ 1 - 1
func/domain_func.sh

@@ -219,7 +219,7 @@ sort_dns_records() {
     mv -f $conf.tmp $conf
 }
 
-httpd_add_config() {
+add_web_config() {
     # Adding template to config
     cat $tpl_file | \
         sed -e "s/%ip%/$ip/g" \