mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-06-26 18:59:14 +02:00
Updated ShellCheck to 0.8.0
and Hadolint to 2.8.0
(#2329)
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
This commit is contained in:
parent
6d06149581
commit
99cc9fec2a
12 changed files with 35 additions and 28 deletions
|
@ -69,7 +69,7 @@ function _populate_relayhost_map
|
|||
# note: won't detect domains when lhs has spaces (but who does that?!)
|
||||
sed -n '/^\s*[^#[:space:]]/ s/^[^@|]*@\([^|]\+\)|.*$/\1/p' /tmp/docker-mailserver/postfix-accounts.cf
|
||||
|
||||
[ -f /tmp/docker-mailserver/postfix-virtual.cf ] && sed -n '/^\s*[^#[:space:]]/ s/^\s*[^@[:space:]]*@\(\S\+\)\s.*/\1/p' /tmp/docker-mailserver/postfix-virtual.cf
|
||||
[[ -f /tmp/docker-mailserver/postfix-virtual.cf ]] && sed -n '/^\s*[^#[:space:]]/ s/^\s*[^@[:space:]]*@\(\S\+\)\s.*/\1/p' /tmp/docker-mailserver/postfix-virtual.cf
|
||||
} | while read -r DOMAIN
|
||||
do
|
||||
# DOMAIN not already present *and* not ignored
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue