renamed httpd_add_config to add_web_config

This commit is contained in:
Serghey Rodin 2011-07-05 00:33:11 +03:00
commit 4a4dcb1804
6 changed files with 10 additions and 10 deletions

View file

@ -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 \

View file

@ -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'

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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" \