Przeglądaj źródła

Return correct error code is_base_domain_owner

Jaap Marcus 4 lat temu
rodzic
commit
71b67fa1fa
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      func/domain.sh

+ 2 - 2
func/domain.sh

@@ -927,14 +927,14 @@ is_base_domain_owner(){
                         test=$(is_domain_new "" $basedomain)
                         test=$(is_domain_new "" $basedomain)
                         if [ $? -ne 0 ]; then
                         if [ $? -ne 0 ]; then
                             echo "Error: $basedomain belongs to a different user";
                             echo "Error: $basedomain belongs to a different user";
-                            exit 1;
+                            exit 4;
                         fi
                         fi
                     fi
                     fi
                 else
                 else
                     test=$(is_domain_new "" $basedomain);
                     test=$(is_domain_new "" $basedomain);
                     if [ $? -ne 0 ]; then
                     if [ $? -ne 0 ]; then
                         echo "Error: $basedomain belongs to a different user";
                         echo "Error: $basedomain belongs to a different user";
-                        exit 1;
+                        exit 4;
                     fi
                     fi
                 fi
                 fi
             fi
             fi