浏览代码

Don't consider the main domain

Bob Mottram 8 年前
父节点
当前提交
5cbfad1a5a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/freedombone-utils-config

+ 1
- 1
src/freedombone-utils-config 查看文件

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