mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Rename function and adjust comment (#2306)
This commit is contained in:
parent
babae05d4a
commit
a8a39a0a1a
|
@ -316,8 +316,8 @@ function _obtain_hostname_and_domainname
|
|||
DOMAINNAME="${DOMAINNAME:-${HOSTNAME}}"
|
||||
}
|
||||
|
||||
# Remove string input with empty line, only whitespace or `#` as the first non-whitespace character.
|
||||
function _strip_comments
|
||||
# Check if string input is an empty line, only whitespaces or `#` as the first non-whitespace character.
|
||||
function _is_comment
|
||||
{
|
||||
grep -q -E "^\s*$|^\s*#" <<< "${1}"
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ function _relayhost_sasl
|
|||
# add domain-specific auth from config file:
|
||||
while read -r LINE
|
||||
do
|
||||
if ! _strip_comments "${LINE}"
|
||||
if ! _is_comment "${LINE}"
|
||||
then
|
||||
echo "${LINE}" >> /etc/postfix/sasl_passwd
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue