--- 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/update.sh index 1b9eed7..7b645e9 100644 --- a/config/rootfiles/core/94/update.sh +++ b/config/rootfiles/core/94/update.sh @@ -70,7 +70,13 @@ EOF
fcrontab -z &>/dev/null
-# 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/sendmail.postfix 15 + sed -i 's/usr/sbin/sendmail/usr/sbin/sendmail.postfix/' /opt/pakfire/db/rootfiles/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/sendmail.dma 20