mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 10:05:00 +02:00
parent
c214cba981
commit
4afebda64d
3 changed files with 76 additions and 74 deletions
|
@ -47,8 +47,11 @@ touch "${DATABASE}"
|
|||
(
|
||||
flock -e 200
|
||||
|
||||
grep -qi "^$(escape "${USER}")|" "${DATABASE}" 2>/dev/null &&
|
||||
errex "User \"${USER}\" already exists"
|
||||
if grep -qi "^$(escape "${USER}")|" "${DATABASE}" 2>/dev/null
|
||||
then
|
||||
echo "User '${USER}' already exists."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${PASSWD} ]]
|
||||
then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue