mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
Add %docroot% var
This commit is contained in:
parent
15db748512
commit
cbc5b16387
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@ domain=$2
|
||||||
domain_idn=$2
|
domain_idn=$2
|
||||||
template=$3
|
template=$3
|
||||||
restart=$4
|
restart=$4
|
||||||
|
docroot="$HOMEDIR/$user/web/$domain/public_html"
|
||||||
|
|
||||||
# Includes
|
# Includes
|
||||||
source $VESTA/func/main.sh
|
source $VESTA/func/main.sh
|
||||||
|
@ -65,6 +66,7 @@ cat $WEBTPL/$WEB_BACKEND/$template.tpl |\
|
||||||
sed -e "s|%backend_port%|$backend_port|" \
|
sed -e "s|%backend_port%|$backend_port|" \
|
||||||
-e "s|%user%|$user|g"\
|
-e "s|%user%|$user|g"\
|
||||||
-e "s|%domain%|$domain|g"\
|
-e "s|%domain%|$domain|g"\
|
||||||
|
-e "s|%docroot%|$docroot|g"\
|
||||||
-e "s|%domain_idn%|$domain_idn|"\
|
-e "s|%domain_idn%|$domain_idn|"\
|
||||||
-e "s|%backend%|$backend_type|g" > $pool/$backend_type.conf
|
-e "s|%backend%|$backend_type|g" > $pool/$backend_type.conf
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue