mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 01:55:29 +02:00
Fix build (#286)
The Refactoring of the scripts 'addmailuser' and 'delmailuser' destroyed the build process.
This commit is contained in:
parent
61cf0bfc6f
commit
69ee54513e
2 changed files with 5 additions and 7 deletions
|
@ -4,13 +4,10 @@ DATABASE=/tmp/docker-mailserver/postfix-accounts.cf
|
|||
|
||||
function usage {
|
||||
echo "Usage: delmailuser <user@domain.tld>"
|
||||
exit 1
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ ! -z "$1" ]; then
|
||||
USER=$1
|
||||
ENTRIES=$(grep "$USER" -vi $DATABASE)
|
||||
echo "$ENTRIES" > $DATABASE
|
||||
USER=$1
|
||||
if [ -f "$DATABASE" ]; then
|
||||
ENTRIES=$(grep "$USER" -vi $DATABASE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue