Fix documentation of of chr's equivalent directive ZEB-672
[idzebra-moved-to-github.git] / debian / idzebra-2.0-utils.postinst
1 #!/bin/sh
2
3 set -e
4
5 if [ "$1" != configure ]; then exit 0; fi
6
7 update-alternatives --quiet --install /usr/bin/zebraidx zebraidx \
8        /usr/bin/zebraidx-2.0 50 \
9        --slave /usr/share/man/man1/zebraidx.1.gz zebraidx.1.gz \
10        /usr/share/man/man1/zebraidx-2.0.1.gz
11
12 update-alternatives --quiet --install /usr/bin/zebrasrv zebrasrv \
13        /usr/bin/zebrasrv-2.0 50 \
14        --slave /usr/share/man/man8/zebrasrv.8.gz zebrasrv.8.gz \
15        /usr/share/man/man8/zebrasrv-2.0.8.gz
16
17 if [ -x "/etc/init.d/zebrasrv" ]; then
18         update-rc.d zebrasrv defaults >/dev/null
19         if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
20                 invoke-rc.d zebrasrv start || exit $?
21         else
22                 /etc/init.d/zebrasrv start || exit $?
23         fi
24 fi
25
26