From 5267e19c3ae2cbadb67434d832f612ca0b3e1734 Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Thu, 20 Aug 2015 10:00:37 +0200 Subject: [PATCH] make postfix ready for alternatives (chkconfig) Signed-off-by: Michael Tremer --- config/rootfiles/packages/postfix | 2 +- lfs/postfix | 1 + src/paks/postfix/install.sh | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/rootfiles/packages/postfix b/config/rootfiles/packages/postfix index c347bb8a3b..bc4739d0b7 100644 --- a/config/rootfiles/packages/postfix +++ b/config/rootfiles/packages/postfix @@ -68,7 +68,7 @@ usr/sbin/postmap usr/sbin/postmulti usr/sbin/postqueue usr/sbin/postsuper -usr/sbin/sendmail +usr/sbin/sendmail.postfix #usr/share/man/man1/mailq.1 #usr/share/man/man1/newaliases.1 #usr/share/man/man1/postalias.1 diff --git a/lfs/postfix b/lfs/postfix index fd332537a7..20b1116014 100644 --- a/lfs/postfix +++ b/lfs/postfix @@ -115,5 +115,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) install -v -m 644 $(DIR_SRC)/config/backup/includes/postfix \ /var/ipfire/backup/addons/includes/postfix + mv /usr/sbin/sendmail /usr/sbin/sendmail.postfix @rm -rf $(DIR_APP) @$(POSTBUILD) diff --git a/src/paks/postfix/install.sh b/src/paks/postfix/install.sh index 0932d2e54e..1629d21c18 100644 --- a/src/paks/postfix/install.sh +++ b/src/paks/postfix/install.sh @@ -34,3 +34,6 @@ start_service ${NAME} ln -sf ../init.d/postfix /etc/rc.d/rc0.d/K25postfix ln -sf ../init.d/postfix /etc/rc.d/rc3.d/S35postfix ln -sf ../init.d/postfix /etc/rc.d/rc6.d/K25postfix + +# Update alternatives +/usr/sbin/alternatives --install /usr/sbin/sendmail sendmail /usr/sbin/sendmail.postfix 15 -- 2.39.2