]> git.sthu.org Git - smailq.git/blob - debian/smailq.postinst
Use update-alternative for Debian
[smailq.git] / debian / smailq.postinst
1 #!/bin/sh
2
3 set -e
4
5 if [ -e /usr/share/debconf/confmodule ]; then
6 . /usr/share/debconf/confmodule
7 fi
8
9 #DEBHELPER#
10
11 case "$1" in
12 configure)
13 update-alternatives --install /usr/sbin/sendmail sendmail /usr/sbin/sendmail.smailq 5 \
14 --slave /usr/lib/sendmail lib-sendmail /usr/sbin/sendmail.smailq;
15 update-alternatives --set sendmail /usr/sbin/sendmail.smailq || true
16 update-alternatives --set lib-sendmail /usr/sbin/sendmail.smailq || true
17 ;;
18 esac