Skip to content

Commit 5fd052e

Browse files
authored
Wrong variable in v-change-web-domain-backend-tpl
Change variable $backend to $backend_type in v-change-web-domain-backend-tpl
1 parent 4adbef4 commit 5fd052e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
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

0 commit comments

Comments
 (0)