mirror of
https://github.com/myvesta/vesta
synced 2025-07-16 10:03:23 -07:00
Merge branch 'master' of github.com:serghey-rodin/vesta
This commit is contained in:
commit
cd6292da93
1 changed files with 2 additions and 2 deletions
|
@ -143,14 +143,14 @@ is_mail_new() {
|
|||
if [ ! -z "$check_acc" ]; then
|
||||
echo "Error: mail account $1 exist"
|
||||
log_event "$E_EXISTS" "$EVENT"
|
||||
exit
|
||||
exit $E_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
|
||||
echo "Error: mail alias $1 exist"
|
||||
log_event "$E_EXISTS" "$EVENT"
|
||||
exit
|
||||
exit $E_EXISTS
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue