mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
scripts: fix error message caused by grep
on first starts (#2591)
Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
parent
0d30b92a83
commit
05e45c349a
|
@ -300,7 +300,7 @@ function _setup_dovecot_local_user
|
|||
local SLEEP_PERIOD='10'
|
||||
for (( COUNTER = 11 ; COUNTER >= 0 ; COUNTER-- ))
|
||||
do
|
||||
if [[ $(grep -cE '.+@.+\|' /tmp/docker-mailserver/postfix-accounts.cf) -ge 1 ]]
|
||||
if [[ $(grep -cE '.+@.+\|' /tmp/docker-mailserver/postfix-accounts.cf 2>/dev/null || printf '%s' '0') -ge 1 ]]
|
||||
then
|
||||
return 0
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue