1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-08-08 23:06:49 +02:00
This commit is contained in:
Georg Lauterbach
2021-03-24 20:42:00 +01:00
committed by GitHub
parent c214cba981
commit 4afebda64d
3 changed files with 76 additions and 74 deletions

View File

@ -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