We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56210b7 commit 81a0d97Copy full SHA for 81a0d97
bin/v-add-web-domain
@@ -120,12 +120,21 @@ if [ ! -z "$WEB_BACKEND" ]; then
120
check_result $? "Backend error" >/dev/null
121
fi
122
123
-# Preparing domain variables
124
-if [ "$aliases" != 'none' ]; then
125
- ALIAS="www.$domain,$aliases,$(get_ip_alias $domain)"
126
-else
+# Preparing domain aliases
+if [ "$aliases" = 'none' ]; then
127
ALIAS=''
+else
+ ALIAS="www.$domain"
128
+ if [ ! -z "$aliases" ]; then
129
+ ALIAS="$ALIAS,$aliases"
130
+ fi
131
+ ip_alias=$(get_ip_alias $domain)
132
+ if [ ! -z "$ip_alias" ]; then
133
+ ALIAS="$ALIAS,$ip_alias"
134
135
136
+
137
+# Preparing domain variables
138
prepare_web_domain_values
139
140
# Adding web server config
0 commit comments