Merge pull request #816 from onbalt/patch-2

Wrong variable names in v-change-web-domain- tpl
This commit is contained in:
Serghey Rodin 2016-08-29 16:53:54 +03:00 committed by GitHub
commit f1f1bd7ec3
2 changed files with 5 additions and 5 deletions

View file

@ -45,7 +45,7 @@ is_backend_template_valid $template
prepare_web_backend
# Deleting backend
rm -f $pool/$backend.conf
rm -f $pool/$backend_type.conf
# Allocating backend port
backend_port=9000
@ -63,10 +63,10 @@ cat $WEBTPL/$WEB_BACKEND/$template.tpl |\
-e "s|%user%|$user|"\
-e "s|%domain%|$domain|"\
-e "s|%domain_idn%|$domain_idn|"\
-e "s|%backend%|$backend|g" > $pool/$backend.conf
-e "s|%backend%|$backend_type|g" > $pool/$backend_type.conf
# Checking backend pool configuration
if [ "$backend" = "$user" ]; then
if [ "$backend_type" = "$user" ]; then
conf=$USER_DATA/web.conf
fields='$DOMAIN'
nohead=1

View file

@ -54,9 +54,9 @@ fi
# Defining variables for new vhost config
prepare_web_domain_values
add_web_config "$WEB_SYSTEM" "$TPL.tpl"
add_web_config "$WEB_SYSTEM" "$template.tpl"
if [ "$SSL" = 'yes' ]; then
add_web_config "$WEB_SYSTEM" "$TPL.stpl"
add_web_config "$WEB_SYSTEM" "$template.stpl"
fi