We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 787f33d + 1c1e5fb commit 95c265eCopy full SHA for 95c265e
func/domain.sh
@@ -143,14 +143,14 @@ is_mail_new() {
143
if [ ! -z "$check_acc" ]; then
144
echo "Error: mail account $1 exist"
145
log_event "$E_EXISTS" "$EVENT"
146
- exit
+ exit $E_EXISTS
147
fi
148
check_als=$(awk -F "ALIAS='" '{print $2}' $USER_DATA/mail/$domain.conf )
149
check_als=$(echo "$check_als" | cut -f 1 -d "'" | grep -w $1)
150
if [ ! -z "$check_als" ]; then
151
echo "Error: mail alias $1 exist"
152
153
154
155
}
156
0 commit comments