Test domain gets modified

This commit is contained in:
Bob Mottram 2016-12-21 21:55:50 +00:00
parent cf4e137c25
commit d24d6ba000
1 changed files with 7 additions and 5 deletions

View File

@ -165,11 +165,13 @@ function nginx_keybase {
function test_domain_name {
if [ $1 ]; then
TEST_DOMAIN_NAME=$1
function_check validate_domain_name
validate_domain_name
if [[ $TEST_DOMAIN_NAME != $1 && $TEST_DOMAIN_NAME != 'ttrss' ]]; then
echo $"Invalid domain name $TEST_DOMAIN_NAME"
exit 8528
if [[ $TEST_DOMAIN_NAME != 'ttrss' ]]; then
function_check validate_domain_name
validate_domain_name
if [[ $TEST_DOMAIN_NAME != $1 ]]; then
echo $"Invalid domain name $TEST_DOMAIN_NAME"
exit 8528
fi
fi
fi
}