mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
fix for empty aliases
This commit is contained in:
parent
56210b7c9e
commit
81a0d978fc
1 changed files with 13 additions and 4 deletions
|
@ -120,12 +120,21 @@ if [ ! -z "$WEB_BACKEND" ]; then
|
||||||
check_result $? "Backend error" >/dev/null
|
check_result $? "Backend error" >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Preparing domain variables
|
# Preparing domain aliases
|
||||||
if [ "$aliases" != 'none' ]; then
|
if [ "$aliases" = 'none' ]; then
|
||||||
ALIAS="www.$domain,$aliases,$(get_ip_alias $domain)"
|
|
||||||
else
|
|
||||||
ALIAS=''
|
ALIAS=''
|
||||||
|
else
|
||||||
|
ALIAS="www.$domain"
|
||||||
|
if [ ! -z "$aliases" ]; then
|
||||||
|
ALIAS="$ALIAS,$aliases"
|
||||||
|
fi
|
||||||
|
ip_alias=$(get_ip_alias $domain)
|
||||||
|
if [ ! -z "$ip_alias" ]; then
|
||||||
|
ALIAS="$ALIAS,$ip_alias"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Preparing domain variables
|
||||||
prepare_web_domain_values
|
prepare_web_domain_values
|
||||||
|
|
||||||
# Adding web server config
|
# Adding web server config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue