Skip to content

Commit fc2ecb2

Browse files
committed
fixed error code in mailalias function
1 parent 1113e1f commit fc2ecb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

func/domain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,12 +506,12 @@ is_mail_domain_new() {
506506
is_mail_new() {
507507
check_acc=$(grep "ACCOUNT='$1'" $USER_DATA/mail/$domain.conf)
508508
if [ ! -z "$check_acc" ]; then
509-
check_result $E_EXIST "mail account $1 is already exists"
509+
check_result $E_EXISTS "mail account $1 is already exists"
510510
fi
511511
check_als=$(awk -F "ALIAS='" '{print $2}' $USER_DATA/mail/$domain.conf )
512512
check_als=$(echo "$check_als" | cut -f 1 -d "'" | grep -w $1)
513513
if [ ! -z "$check_als" ]; then
514-
check_result $E_EXIST "mail alias $1 is already exists"
514+
check_result $E_EXISTS "mail alias $1 is already exists"
515515
fi
516516
}
517517

0 commit comments

Comments
 (0)