From fc2ecb22b7c23e7cd8b6930e54091a65a23e2135 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Thu, 29 Sep 2016 23:40:44 +0300 Subject: [PATCH] fixed error code in mailalias function --- func/domain.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/func/domain.sh b/func/domain.sh index d5f0de355..a67e487bb 100644 --- a/func/domain.sh +++ b/func/domain.sh @@ -506,12 +506,12 @@ is_mail_domain_new() { is_mail_new() { check_acc=$(grep "ACCOUNT='$1'" $USER_DATA/mail/$domain.conf) if [ ! -z "$check_acc" ]; then - check_result $E_EXIST "mail account $1 is already exists" + check_result $E_EXISTS "mail account $1 is already exists" fi check_als=$(awk -F "ALIAS='" '{print $2}' $USER_DATA/mail/$domain.conf ) check_als=$(echo "$check_als" | cut -f 1 -d "'" | grep -w $1) if [ ! -z "$check_als" ]; then - check_result $E_EXIST "mail alias $1 is already exists" + check_result $E_EXISTS "mail alias $1 is already exists" fi }