mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -07:00
Wrong variable in v-change-web-domain-backend-tpl
Change variable $backend to $backend_type in v-change-web-domain-backend-tpl
This commit is contained in:
parent
4adbef4517
commit
5fd052ee07
1 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ is_backend_template_valid $template
|
||||||
prepare_web_backend
|
prepare_web_backend
|
||||||
|
|
||||||
# Deleting backend
|
# Deleting backend
|
||||||
rm -f $pool/$backend.conf
|
rm -f $pool/$backend_type.conf
|
||||||
|
|
||||||
# Allocating backend port
|
# Allocating backend port
|
||||||
backend_port=9000
|
backend_port=9000
|
||||||
|
@ -63,10 +63,10 @@ cat $WEBTPL/$WEB_BACKEND/$template.tpl |\
|
||||||
-e "s|%user%|$user|"\
|
-e "s|%user%|$user|"\
|
||||||
-e "s|%domain%|$domain|"\
|
-e "s|%domain%|$domain|"\
|
||||||
-e "s|%domain_idn%|$domain_idn|"\
|
-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
|
# Checking backend pool configuration
|
||||||
if [ "$backend" = "$user" ]; then
|
if [ "$backend_type" = "$user" ]; then
|
||||||
conf=$USER_DATA/web.conf
|
conf=$USER_DATA/web.conf
|
||||||
fields='$DOMAIN'
|
fields='$DOMAIN'
|
||||||
nohead=1
|
nohead=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue