mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
add quotes
This commit is contained in:
parent
3b2ae0f1c8
commit
13b43561f8
|
@ -23,7 +23,7 @@ if [ ! -z "$1" ]; then
|
|||
fi
|
||||
fi
|
||||
ENTRY=$(echo "$USER|$(doveadm pw -s SHA512-CRYPT -u $USER -p $PASS)")
|
||||
echo $ENTRY >> $DATABASE
|
||||
echo "$ENTRY" >> $DATABASE
|
||||
else
|
||||
usage
|
||||
fi
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
DATABASE=/tmp/docker-mailserver/postfix-accounts.cf
|
||||
|
||||
function usage {
|
||||
echo Usage: delmailuser <user@domain.tld>
|
||||
echo "Usage: delmailuser <user@domain.tld>"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ ! -z "$1" ]; then
|
||||
ENTRIES=$(grep "$USER" -vi $DATABASE)
|
||||
echo $ENTRIES > $DATABASE
|
||||
echo "$ENTRIES" > $DATABASE
|
||||
else
|
||||
usage
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue