Increase domain components
This commit is contained in:
parent
4808ef1519
commit
4130db49ea
|
@ -420,11 +420,11 @@ function validate_domain_name {
|
||||||
# count the number of dots in the domain name
|
# count the number of dots in the domain name
|
||||||
dots=${TEST_DOMAIN_NAME//[^.]}
|
dots=${TEST_DOMAIN_NAME//[^.]}
|
||||||
no_of_dots=${#dots}
|
no_of_dots=${#dots}
|
||||||
if (( $no_of_dots > 2 )); then
|
if (( $no_of_dots > 3 )); then
|
||||||
TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has too many subdomains. It should be of the type x.y.z or y.z"
|
TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has too many subdomains. It should be of the type w.x.y.z, x.y.z or y.z"
|
||||||
fi
|
fi
|
||||||
if (( $no_of_dots == 0 )); then
|
if (( $no_of_dots == 0 )); then
|
||||||
TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has no top level domain. It should be of the type x.y.z or y.z"
|
TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has no top level domain. It should be of the type w.x.y.z, x.y.z or y.z"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -177,11 +177,11 @@ function validate_domain_name {
|
||||||
# count the number of dots in the domain name
|
# count the number of dots in the domain name
|
||||||
dots=${TEST_DOMAIN_NAME//[^.]}
|
dots=${TEST_DOMAIN_NAME//[^.]}
|
||||||
no_of_dots=${#dots}
|
no_of_dots=${#dots}
|
||||||
if (( $no_of_dots > 2 )); then
|
if (( $no_of_dots > 3 )); then
|
||||||
TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has too many subdomains. It should be of the type x.y.z or y.z"
|
TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has too many subdomains. It should be of the type w.x.y.z, x.y.z or y.z"
|
||||||
fi
|
fi
|
||||||
if (( $no_of_dots == 0 )); then
|
if (( $no_of_dots == 0 )); then
|
||||||
TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has no top level domain. It should be of the type x.y.z or y.z"
|
TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has no top level domain. It should be of the type w.x.y.z, x.y.z or y.z"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue