Correction for LINE variable

This commit is contained in:
Georg Lauterbach 2020-10-19 16:29:25 +02:00
parent 54dc528880
commit d5543b21c4
No known key found for this signature in database
GPG Key ID: 386D76E7AD496709
1 changed files with 9 additions and 9 deletions

View File

@ -1321,13 +1321,13 @@ function _setup_postfix_override_configuration
if [[ -f /tmp/docker-mailserver/postfix-main.cf ]] if [[ -f /tmp/docker-mailserver/postfix-main.cf ]]
then then
while read -r line while read -r LINE
do do
# all valid postfix options start with a lower case letter # all valid postfix options start with a lower case letter
# http://www.postfix.org/postconf.5.html # http://www.postfix.org/postconf.5.html
if [[ ${line} =~ ^[a-z] ]] if [[ ${LINE} =~ ^[a-z] ]]
then then
postconf -e "${line}" postconf -e "${LINE}"
fi fi
done < /tmp/docker-mailserver/postfix-main.cf done < /tmp/docker-mailserver/postfix-main.cf
_notify 'inf' "Loaded 'config/postfix-main.cf'" _notify 'inf' "Loaded 'config/postfix-main.cf'"
@ -1337,11 +1337,11 @@ function _setup_postfix_override_configuration
if [[ -f /tmp/docker-mailserver/postfix-master.cf ]] if [[ -f /tmp/docker-mailserver/postfix-master.cf ]]
then then
while read -r line while read -r LINE
do do
if [[ ${line} =~ ^[0-9a-z] ]] if [[ ${LINE} =~ ^[0-9a-z] ]]
then then
postconf -P "${line}" postconf -P "${LINE}"
fi fi
done < /tmp/docker-mailserver/postfix-master.cf done < /tmp/docker-mailserver/postfix-master.cf
_notify 'inf' "Loaded 'config/postfix-master.cf'" _notify 'inf' "Loaded 'config/postfix-master.cf'"
@ -1431,11 +1431,11 @@ function _setup_postfix_relay_hosts
then then
_notify 'inf' "Adding relay authentication from postfix-sasl-password.cf" _notify 'inf' "Adding relay authentication from postfix-sasl-password.cf"
while read -r line while read -r LINE
do do
if ! echo "${line}" | grep -q -e "^\s*#" if ! echo "${LINE}" | grep -q -e "^\s*#"
then then
echo "${line}" >> /etc/postfix/sasl_passwd echo "${LINE}" >> /etc/postfix/sasl_passwd
fi fi
done < /tmp/docker-mailserver/postfix-sasl-password.cf done < /tmp/docker-mailserver/postfix-sasl-password.cf
fi fi