Don't consider the main domain

This commit is contained in:
Bob Mottram 2016-10-19 20:13:38 +01:00
parent 28b8ebc4da
commit 5cbfad1a5a
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ function check_domains {
for d in "${domains_array[@]}"
do
domain_param=$(echo "$d" | awk -F '=' '{print $1}')
if [[ $domain_param != "DEFAULT_DOMAIN_NAME" ]]; then
if [[ "$domain_param" != "DEFAULT_DOMAIN_NAME" && "$domain_param" != "${PROJECT_NAME}.local" ]]; then
domain_value=$(echo "$d" | awk -F '=' '{print $2}')
item_in_array "${domain_value}" "${checked_domains[@]}"
if [[ $? != 0 ]]; then