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 c53bf1a commit a42d9a2Copy full SHA for a42d9a2
bin/v-add-web-domain
@@ -52,7 +52,12 @@ check_args '2' "$#" 'USER DOMAIN [IP] [RESTART] [ALIASES] [PROXY_EXTENSIONS]'
52
is_format_valid 'user' 'domain' 'aliases' 'ip' 'proxy_ext'
53
is_object_valid 'user' 'USER' "$user"
54
is_object_unsuspended 'user' 'USER' "$user"
55
-is_package_full 'WEB_DOMAINS' 'WEB_ALIASES'
+is_package_full 'WEB_DOMAINS'
56
+
57
+if [ "$aliases" != "none" ]; then
58
+ ALIAS=$aliases
59
+ is_package_full 'WEB_ALIASES'
60
+fi
61
62
if [ "$($BIN/v-list-web-domain $user $domain_utf plain |cut -f 1) " != "$domain" ]; then
63
is_domain_new 'web' "$domain_utf,$aliases"
0 commit comments