|
|
@@ -42,7 +42,7 @@ format_aliases
|
|
|
#----------------------------------------------------------#
|
|
|
|
|
|
# Parsing domain values as they are used to get the current alias usage
|
|
|
-get_domain_values 'web'
|
|
|
+
|
|
|
|
|
|
if [ -z "$aliases" ]; then
|
|
|
check_result $E_INVALID "invalid alias format: empty"
|
|
|
@@ -56,8 +56,6 @@ is_object_unsuspended 'user' 'USER' "$user"
|
|
|
is_object_valid 'web' 'DOMAIN' "$domain"
|
|
|
is_object_unsuspended 'web' 'DOMAIN' "$domain"
|
|
|
is_domain_new 'web' "$aliases"
|
|
|
-is_package_full 'WEB_ALIASES'
|
|
|
-
|
|
|
is_base_domain_owner "$aliases"
|
|
|
|
|
|
# Perform verification if read-only mode is enabled
|
|
|
@@ -68,6 +66,8 @@ check_hestia_demo_mode
|
|
|
# Action #
|
|
|
#----------------------------------------------------------#
|
|
|
|
|
|
+get_domain_values 'web'
|
|
|
+
|
|
|
# Preparing domain values for the template substitution
|
|
|
local_ip=$(get_real_ip $IP)
|
|
|
if [ -z "$ALIAS" ]; then
|
|
|
@@ -77,6 +77,8 @@ else
|
|
|
fi
|
|
|
prepare_web_domain_values
|
|
|
|
|
|
+is_package_full 'WEB_ALIASES'
|
|
|
+
|
|
|
# Rebuilding vhost
|
|
|
del_web_config "$WEB_SYSTEM" "$TPL.tpl"
|
|
|
add_web_config "$WEB_SYSTEM" "$TPL.tpl"
|