1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-06-17 03:47:49 +02:00

Change 'while' style (#3365)

This commit is contained in:
Casper
2023-05-26 01:39:39 +02:00
committed by GitHub
parent 37ca0f9ba9
commit c2d0b748b2
18 changed files with 22 additions and 44 deletions

View File

@ -45,8 +45,7 @@ function _vhost_collect_postfix_domains() {
# getting domains FROM mail accounts
if [[ -f ${DATABASE_ACCOUNTS} ]]; then
while IFS=$'|' read -r LOGIN _
do
while IFS=$'|' read -r LOGIN _; do
DOMAIN=$(echo "${LOGIN}" | cut -d @ -f2)
echo "${DOMAIN}" >>"${TMP_VHOST}"
done < <(_get_valid_lines_from_file "${DATABASE_ACCOUNTS}")
@ -54,8 +53,7 @@ function _vhost_collect_postfix_domains() {
# getting domains FROM mail aliases
if [[ -f ${DATABASE_VIRTUAL} ]]; then
while read -r FROM _
do
while read -r FROM _; do
UNAME=$(echo "${FROM}" | cut -d @ -f1)
DOMAIN=$(echo "${FROM}" | cut -d @ -f2)