Skip to content

Commit f1f1bd7

Browse files
Merge pull request hestiacp#816 from onbalt/patch-2
Wrong variable names in v-change-web-domain- tpl
2 parents 9a6b406 + b3ccb9c commit f1f1bd7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bin/v-change-web-domain-backend-tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ is_backend_template_valid $template
4545
prepare_web_backend
4646

4747
# Deleting backend
48-
rm -f $pool/$backend.conf
48+
rm -f $pool/$backend_type.conf
4949

5050
# Allocating backend port
5151
backend_port=9000
@@ -63,10 +63,10 @@ cat $WEBTPL/$WEB_BACKEND/$template.tpl |\
6363
-e "s|%user%|$user|"\
6464
-e "s|%domain%|$domain|"\
6565
-e "s|%domain_idn%|$domain_idn|"\
66-
-e "s|%backend%|$backend|g" > $pool/$backend.conf
66+
-e "s|%backend%|$backend_type|g" > $pool/$backend_type.conf
6767

6868
# Checking backend pool configuration
69-
if [ "$backend" = "$user" ]; then
69+
if [ "$backend_type" = "$user" ]; then
7070
conf=$USER_DATA/web.conf
7171
fields='$DOMAIN'
7272
nohead=1

bin/v-change-web-domain-tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ fi
5454

5555
# Defining variables for new vhost config
5656
prepare_web_domain_values
57-
add_web_config "$WEB_SYSTEM" "$TPL.tpl"
57+
add_web_config "$WEB_SYSTEM" "$template.tpl"
5858
if [ "$SSL" = 'yes' ]; then
59-
add_web_config "$WEB_SYSTEM" "$TPL.stpl"
59+
add_web_config "$WEB_SYSTEM" "$template.stpl"
6060
fi
6161

6262

0 commit comments

Comments
 (0)