mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
Add %docroot% var
This commit is contained in:
parent
8a217352fe
commit
15db748512
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ user=$1
|
||||||
domain=$2
|
domain=$2
|
||||||
template=${3-default}
|
template=${3-default}
|
||||||
restart=$4
|
restart=$4
|
||||||
|
docroot="$HOMEDIR/$user/web/$domain/public_html"
|
||||||
|
|
||||||
# Includes
|
# Includes
|
||||||
source $VESTA/func/main.sh
|
source $VESTA/func/main.sh
|
||||||
|
@ -59,6 +60,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|%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