Fix error on writing postfix 'master.conf' file. Synchronise Package indexes befor downloading debian packages.

This commit is contained in:
Christoph 2017-10-22 17:03:21 +02:00
parent e87398cdbe
commit 55bc28b403

View File

@ -2342,7 +2342,7 @@ for _pkg in $_needed_packages_clamav ; do
fi
done
if [[ -n "$needed_packages_clamav" ]]; then
DEBIAN_FRONTEND=noninteractive apt-get -y install $needed_packages_clamav > /dev/null 2> $tmp_err_msg
DEBIAN_FRONTEND=noninteractive apt-get -y install $needed_packages_clamav > $tmp_err_msg 2>&1
if [[ $? -eq 0 ]] ; then
echo_ok
else
@ -3601,6 +3601,7 @@ EOF
if $smtps_present && echo "$_line" | grep -i -E "^smtps\s+" > /dev/null 2>&1 ; then
_found=true
cat >> $postfix_master_cf << EOF
smtps inet n - y - - smtpd
-o content_filter=amavisfeed:[127.0.0.1]:10024