From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Marx To: development@lists.ipfire.org Subject: [PATCH 2/2] Core94: fix for dma when postfix is installed Date: Thu, 15 Oct 2015 12:18:28 +0200 Message-ID: <1444904308-15139-2-git-send-email-alexander.marx@ipfire.org> In-Reply-To: <1444904308-15139-1-git-send-email-alexander.marx@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4448735971473913074==" List-Id: --===============4448735971473913074== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable --- config/rootfiles/core/94/update.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/rootfiles/core/94/update.sh b/config/rootfiles/core/94/up= date.sh index 1b9eed7..7b645e9 100644 --- a/config/rootfiles/core/94/update.sh +++ b/config/rootfiles/core/94/update.sh @@ -70,7 +70,13 @@ EOF =20 fcrontab -z &>/dev/null =20 -# dma files +# DMA - reconfigure Postfix if exists +if [ -e /etc/postfix/main.cf ]; then + mv /usr/sbin/sendmail /usr/sbin/sendmail.postfix + /usr/sbin/alternatives --install /usr/sbin/sendmail sendmail /usr/sbin/send= mail.postfix 15 + sed -i 's/usr\/sbin\/sendmail/usr/sbin/sendmail.postfix/' /opt/pakfire/db/r= ootfiles/postfix +fi +# DMA - configure dma as default mta mkdir /etc/alternatives mkdir /var/lib/alternatives /usr/sbin/alternatives --install /usr/sbin/sendmail sendmail /usr/sbin/sendm= ail.dma 20 --=20 1.9.1 --===============4448735971473913074==--