mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-06-28 03:30:24 +02:00
change if style (#3361)
This commit is contained in:
parent
0e592aa911
commit
cf74127f78
58 changed files with 297 additions and 594 deletions
|
@ -25,8 +25,7 @@ function _manage_virtual_aliases
|
|||
case "${ACTION}" in
|
||||
# Associate RECIPIENT to MAIL_ALIAS:
|
||||
( 'update' )
|
||||
if [[ -f ${DATABASE_ACCOUNTS} ]] && grep -q "^${MAIL_ALIAS}" "${DATABASE_ACCOUNTS}"
|
||||
then
|
||||
if [[ -f ${DATABASE_ACCOUNTS} ]] && grep -q "^${MAIL_ALIAS}" "${DATABASE_ACCOUNTS}"; then
|
||||
_exit_with_error "'${MAIL_ALIAS}' is already defined as an account"
|
||||
fi
|
||||
_db_entry_add_or_append "${DATABASE_VIRTUAL}" "${MAIL_ALIAS}" "${RECIPIENT}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue