Jaap Marcus 3 лет назад
Родитель
Сommit
32fd4cad6d
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      func/domain.sh

+ 2 - 2
func/domain.sh

@@ -988,14 +988,14 @@ is_base_domain_owner(){
                     parse_object_kv_list "$web"
                     if [ -z "$ALLOW_USERS" ] ||  [ "$ALLOW_USERS" != "yes" ]; then
                         # Don't care if $basedomain all ready exists only if the owner is of the base domain is the current user
-                        is_domain_new "" $basedomain;
+                        check=$(is_domain_new "" $basedomain)
                         if [ $? -ne 0 ]; then
                             echo "Error: $basedomain belongs to a different user";
                             exit 4;
                         fi
                     fi
                 else
-                    is_domain_new "" "$basedomain"
+                    check=$(is_domain_new "" "$basedomain")
                     if [ $? -ne 0 ]; then
                         echo "Error: $basedomain belongs to a different user";
                         exit 4;