mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -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
|
||||
template=${3-default}
|
||||
restart=$4
|
||||
docroot="$HOMEDIR/$user/web/$domain/public_html"
|
||||
|
||||
# Includes
|
||||
source $VESTA/func/main.sh
|
||||
|
@ -59,6 +60,7 @@ cat $WEBTPL/$WEB_BACKEND/$template.tpl |\
|
|||
sed -e "s|%backend_port%|$backend_port|" \
|
||||
-e "s|%user%|$user|g"\
|
||||
-e "s|%domain%|$domain|g"\
|
||||
-e "s|%docroot%|$docroot|g"\
|
||||
-e "s|%backend%|$backend_type|g" > $pool/$backend_type.conf
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue