From 4130db49ea200faca134e5f20f93a36773f0708e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Feb 2015 14:42:30 +0000 Subject: [PATCH] Increase domain components --- src/freedombone | 6 +++--- src/freedombone-config | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/freedombone b/src/freedombone index 83986d00..d86c0521 100755 --- a/src/freedombone +++ b/src/freedombone @@ -420,11 +420,11 @@ function validate_domain_name { # count the number of dots in the domain name dots=${TEST_DOMAIN_NAME//[^.]} no_of_dots=${#dots} - if (( $no_of_dots > 2 )); 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" + if (( $no_of_dots > 3 )); then + 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 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 } diff --git a/src/freedombone-config b/src/freedombone-config index 8fd5dc31..89ddda50 100755 --- a/src/freedombone-config +++ b/src/freedombone-config @@ -177,11 +177,11 @@ function validate_domain_name { # count the number of dots in the domain name dots=${TEST_DOMAIN_NAME//[^.]} no_of_dots=${#dots} - if (( $no_of_dots > 2 )); 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" + if (( $no_of_dots > 3 )); then + 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 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 }